Anyone have success using file router with threejs #2095
-
sorry I haven't made a small preview yet but I'm working on a pretty hefty app that involves rendering threejs canvases via react three fiber with tanstack router. For some reason, whenever I put a mesh into my canvas, the entire router stops to render anything. I'll create a minimally reproducible example soon but was wondering if anyone had any situation this has happened where nothing is rendered from the router anymore due to some threejs interaction. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
So I found out that my problem is that I have some loaders in my threejs component and that tanstack is trying to show a pending component for those loaders. I want to completely disable that feature of tanstack. How can I do that? |
Beta Was this translation helpful? Give feedback.
-
I ended up wrapping the component causing the loading with a React.Suspense so that the loading event get's caught there instead of at the router level. Would still like to know how to disable it at the router level if possible. Thank you. |
Beta Was this translation helpful? Give feedback.
For the
root
route, this is the case currently.Try out the packages built for this PR to see if this fixes your issue: https://github.com/TanStack/router/pull/2035/files