Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement client-side caching in useDataCache() #59

Open
dulnan opened this issue Jul 6, 2024 · 1 comment
Open

Implement client-side caching in useDataCache() #59

dulnan opened this issue Jul 6, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@dulnan
Copy link
Owner

dulnan commented Jul 6, 2024

As a follow-up to #25 that introduced client-side caching in useCachedAsyncData, explore options to also add client-side caching to useDataCache, possibly reusing/sharing code from useCachedAsyncData.

@dulnan dulnan added the enhancement New feature or request label Jul 6, 2024
@plcdnl
Copy link

plcdnl commented Dec 2, 2024

Hi, sorry to bother you again. I think my question might be related to the previous one. Is there a way to retrieve data from useRouteCache() during client-side navigation?

When I first visit the website, it correctly fetches the data from the cache. However, during subsequent client-side navigation, it queries the CMS again. Is it possible to avoid this behavior?

Thank you in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants