Dynamic route on Link causes site to break while using ppr
Unanswered
Morelet’s Crocodile posted this in #help-forum
Morelet’s CrocodileOP
Hey guys I'v been playing around with ppr and my site Links break when i click on or hover over a link that has a search query in the path. I'm assuming that has to do with pre-fetching. The route it self works and causes no isse as it is wraped in suspense aka loading.tsx. I've tried a few ways of getting a search query in the path but if its using Link it seems to break. Id doesn't happen locally on dev but does on prod or vercel. Plz help I'd like to keep using ppr.
<Link href={{
pathname: '/lists/cutting',
query: { date: today },
}}>
1 Reply
Morelet’s CrocodileOP
So turning off prefetch on the links works but seems sub optimal