Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recreation of Viewer does not update useCesium #685

Open
Kai-W opened this issue Nov 28, 2024 · 1 comment
Open

recreation of Viewer does not update useCesium #685

Kai-W opened this issue Nov 28, 2024 · 1 comment

Comments

@Kai-W
Copy link

Kai-W commented Nov 28, 2024

The recreation of the viewer e.g. by updating an readOnly Prop like the terrain the viewer gets recreated but the useCesium Hook/Context doesn't get changed to the new viewer.
https://codesandbox.io/p/devbox/adoring-resonance-v73cld?workspaceId=9117e334-595a-43a5-b862-cd9119685f75

@Kai-W
Copy link
Author

Kai-W commented Nov 28, 2024

Provided is stored in a ref and updated in a async function. That updates the ref but doesnt trigger a redraw and with it the context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant