useSuspense only on inital load, to allow incremental update #9395
Unanswered
michaltaberski
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I think you’d want to conditionally add another suspense boundary around |
Beta Was this translation helpful? Give feedback.
2 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.
-
1
I have case where I have a main content and paginated sidebar. Both areas I am feeding with data using
useSuspenseQuery
. More or less like this:2
On initial load I have Suspense wrapper so the loading state looks like this:
3
The problem I have is updating page on sidebar. After I update a page parameter I am running into loading screen from step
2
, however I would like to load the data incrementally, so it looks like this:Question
How to run useQuerySuspense only in suspense mode on initial load, but later update query parameter without triggering whole page loader?
Beta Was this translation helpful? Give feedback.
All reactions