Cache Components: Is there per route ppr?
Unanswered
Giant panda posted this in #help-forum
Giant pandaOP
Have a route that uses a dynamic api (cookies) but when enabling cache components, it requires wrapping the entire route in a suspense. Is there no way to disable cache component/ppr for this route?
I wasn't aware that dynamic routes like these still need to be wrapped in a suspense. I would prefer if it was instead blocking because the addition of the suspense leads to the page loading faster but would first flash the suspense fallback which is not what I want.
I wasn't aware that dynamic routes like these still need to be wrapped in a suspense. I would prefer if it was instead blocking because the addition of the suspense leads to the page loading faster but would first flash the suspense fallback which is not what I want.
1 Reply
Saint Hubert Jura Hound
Yeah this is something i was also thinking about when switching to cache components. I have a auth provider wrapped around the root layout which suspends. But i just went with the suspense fallback and noticed since its in a layout the fallback actually only shows when first visiting the site or on full page refresh. So subsequent navigations are very fast and dont show the fallback. So unless someone here has a different solution ill probabably just stick with the fallback