Replies: 3 comments 2 replies
-
@Iambizi have you tried to put the e.g.: export default function Loader() {
return (
<Suspense fallback={<Loader />}>
<Canvas>...</Canvas>
</Suspense>
);
} |
Beta Was this translation helpful? Give feedback.
1 reply
-
i've the same problem @Iambizi, i want to put a loading animation for preload and then show my models, but i tried tu put into suspense fallback but doesnt work |
Beta Was this translation helpful? Give feedback.
1 reply
-
@Iambizi You can wrap the Suspense inside a Div in order to make it work. 👍 |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to add a Loader as fallback to the suspense component, but having a bit of trouble.
I created the following component to hold a Loader. I made sure to use the Html component from drei:
and I'm trying to pass it into my suspense component inside my canvas.

//Canvas
But when I do, my app goes blank seemingly crashing. Any feedback on what I'm doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions