Suspense boundary trigger
I'm having some trouble understanding when a suspense boundary would be triggered or not.
I have RSC that fetches some data and in my expectation when the URL changes with some filter options and the components starts to fetch again the fallback of the suspense should be activated.
Thats not the case. The suspense boundary is only triggered on a full page refresh.
Basically my expectation would be that when I change any filters it would activate the boundary.
What is missing in my knowledge so I can understand it right?
Really appreciate any help or direction to some more deep documentaton / issue someone already had.
3 Replies
A image if it helps reading the code, the discord code is pretty ugly.
Solved this with this issue
https://github.com/vercel/next.js/issues/53543
Basically just need to add the key to the suspense
GitHub
Updating search params does not trigger suspense fallback or loadin...
Verify canary release I verified that the issue exists in the latest Next.js canary release Provide environment information Operating System: Platform: linux Arch: x64 Version: #22 SMP Tue Jan 10 1...
Unrelated but you can specify language name to trigger syntax highlighting
```js
console.log("This is js")
```