#Server side pagination w/Suspense

5 messages · Page 1 of 1 (latest)

last pier
#

Is there a way to display the suspense boundary anytime we change the route due to pagination?

I don't know if it's intended to be used this way, but I've wrapped the component that makes the request in a suspense boundary and I've created buttons that paginate through the data and update the url through the "router.replace" method. However, The suspense boundary is only displayed on first load, it's never displayed again when routing via the pagination buttons.

pure nymphBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

dreamy yacht
#

btw, the key is a string

last pier
#

ahhhh, now that's pretty pog 5376pepepoggerschains . I wish they listed this somewhere in the documentation xD!

Thanks!