How to override router ( Link ) caching in Nextjs 13 ?
Unanswered
Arctic Tern posted this in #help-forum
Arctic TernOP
I was building an app that has search functionality, which filter by search,
The problem I’m facing is when I navigate to another route and back to the search page it shows the filtered data which I don’t want to see, I want to see the fresh data( the whole data without filter ). I tried to pass prefetch=false to the Link component but it aborts the fetching of other router pages. So how can I fix this issue using the Link component?
The problem I’m facing is when I navigate to another route and back to the search page it shows the filtered data which I don’t want to see, I want to see the fresh data( the whole data without filter ). I tried to pass prefetch=false to the Link component but it aborts the fetching of other router pages. So how can I fix this issue using the Link component?
9 Replies
Back to the search page? Did you use the back button?
Arctic TernOP
I don't get what you are trying to say?
I deleted the duplicate
Please don’t repost
@Arctic Tern I don't get what you are trying to say?
"when I navigate to another route and back to the search page"
Did you click a link to another route, and another route to go back to search page
or did you use the Browser's Back Button
Did you click a link to another route, and another route to go back to search page
or did you use the Browser's Back Button
@joulev I deleted the duplicate
Arctic TernOP
sorry, I thought the question was not clear to ask, It won't happen again
@aardani "when I navigate to another route and back to the search page"
Did you click a link to another route, and another route to go back to search page
or did you use the Browser's Back Button
Arctic TernOP
I used another route ( link ) to go back to search page
Arctic TernOP
can anyone help me with this?
Arctic TernOP
or is there a way I can revalidate the router when I navigate back ?