Do "<Outlet />"s need to be wrapped in Suspense? #10670
Unanswered
bitttttten
asked this question in
Q&A
Replies: 1 comment
-
Outlet doesn't use Suspense by default, when using the lazy function in a route RR awaits it before doing the navigation. So this must be something else. |
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.
-
We are seeing the suspended component errors in Sentry, i.e.
The only thing we can see which is lazy loaded or using Suspense, that we can tell, are our router components. We are currently rendering and using syntax like
So just wanted to ask what is the pattern here. Perhaps this error is not coming from react-router-dom, but we have a lot of nested lazy loaded routes and I wanted to check.
Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions