Replies: 2 comments
-
To "block" suspense I believe you have to return a promise from your component. This is what |
Beta Was this translation helpful? Give feedback.
0 replies
-
useMemo runs before render, that could be a good place to do it, especially if you expect a value back. another such place would be useLayoutEffect which also comes before render (to screen). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using
useLoader
to fetch a model. I then need to measure that model's meshes' bounding boxes and scale it before it renders (due to auseSpring
animation I've got set up, this seems like the cleanest way to do it). Is that possible? Right now I'm doing the calculations in auseMemo
but that doesn't run until after render it seems (so the models load and then animate to the new scale).Beta Was this translation helpful? Give feedback.
All reactions