Replies: 3 comments 4 replies
-
You can't use suspense without a suspense component / boundary. |
Beta Was this translation helpful? Give feedback.
1 reply
-
btw, is there any way to force React-dom go to this branch? react-dom.development.js
|
Beta Was this translation helpful? Give feedback.
0 replies
-
We do have an example in the docs that does just that, please have a look: https://tanstack.com/query/v4/docs/examples/react/suspense
|
Beta Was this translation helpful? Give feedback.
3 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.
-
Hi,
I have this example here https://github.com/poc7667/BuggyReactSuspense/blob/main/src/App.js
I didn't provide the suspense fallback view on purpose, because I want React hanging the previous view while doing data-load.
But don't get why the route updates, view component update will crash this app, any idea? (might not related to react-query)
Thanks
run app on localhost:3000,
http://localhost:3000/users -> http://localhost:3000/products (ok)
http://localhost:3000/products -> http://localhost:3000/users (crash)
Beta Was this translation helpful? Give feedback.
All reactions