Replies: 1 comment 1 reply
-
Because Remix and React Router do not unmount your route components when you navigate, they simply fetch your loaders, update the context, and let React handle the rendering. If you're rendering the same component tree, then https://stackblitz.com/github/kiliman/remix-suspense?file=README.md |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
For example, i use
redirect('/page')
or<Link to='/page' />
to get to/page
.And i create a loader in
app/routes/page.tsx
which returns adefer
withSuspense
andAwait
.But it takes 2s to jump. When I use
<Link to='/page' reloadDocument/>
, the page jumps immediately and rendersSuspense
's fallback component for two seconds. Why?------------------
The reason for this problem seems to be that
<Suspense/>
is not supported onBun
.Because this only occurs when I run
bun run --bun dev
. If I runbun run dev
, the bug does not appear.Beta Was this translation helpful? Give feedback.
All reactions