How can I achieve something like this?
Unanswered
Toy Manchester Terrier posted this in #help-forum
Toy Manchester TerrierOP
In the video you can se me switching tabs, and it's caching the data. Does anyone have an idea how they are doing that. Is it being done by unstable_cache, or something else?
Would love to know how, as in my app, when having doing something similar, it keeps loading again and hitting suspense.
Would love to know how, as in my app, when having doing something similar, it keeps loading again and hitting suspense.
1 Reply
@Toy Manchester Terrier In the video you can se me switching tabs, and it's caching the data. Does anyone have an idea how they are doing that. Is it being done by unstable_cache, or something else?
Would love to know how, as in my app, when having doing something similar, it keeps loading again and hitting suspense.
that is the router cache at work
https://nextjs.org/docs/app/building-your-application/caching#client-side-router-cache
you need to explicitly opt in to the router cache starting from next 15
https://nextjs.org/docs/app/building-your-application/caching#client-side-router-cache
you need to explicitly opt in to the router cache starting from next 15