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

custom cache provider for queryClient #54

Open
sharmapukar217 opened this issue Sep 23, 2022 · 4 comments
Open

custom cache provider for queryClient #54

sharmapukar217 opened this issue Sep 23, 2022 · 4 comments
Labels
✨ enhancement New feature or request

Comments

@sharmapukar217
Copy link
Contributor

Is there any way to provide custom cache provider for query client?

@cyco130 cyco130 added the ✨ enhancement New feature or request label Sep 23, 2022
@cyco130
Copy link
Member

cyco130 commented Sep 23, 2022

Not yet, but I had the use case in mind, so it's not too hard. What's your use case? Caching in localStorage etc.? Or local cache for parts of the React tree?

@sharmapukar217
Copy link
Contributor Author

Oh yes local storage or maybe indexed db but not memory storage. Required for my PWA

@cyco130
Copy link
Member

cyco130 commented Sep 24, 2022

I just managed to create a full react-query integration. This may solve this issue soon. https://stackblitz.com/github/rakkasjs/tanstack-query?file=src%2Fentry-hattip.tsx,src%2Fentry-client.tsx

@sharmapukar217
Copy link
Contributor Author

I just managed to create a full react-query integration. This may solve this issue soon. https://stackblitz.com/github/rakkasjs/tanstack-query?file=src%2Fentry-hattip.tsx,src%2Fentry-client.tsx

Thanks. You and rakkasjs both are awesome 🔥

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