Skip to content

Filter out React Query cache from mmkv #18

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

IlyaPyatkin
Copy link

Just like with AsyncStorage, MMKV can be used to persist the React Query cache. To reduce noise in the debugger view, this PR filters out the React Query cache key from being displayed.

@LovesWorking
Copy link
Owner

I use persistCache too, but my data is stored under a single key yours isn’t? I do agree that React Query DevTools should support filtering out specific keys from the view, remembering your preferences, and making it easier to focus on certain keys.

Instead of merging this PR, I think it’d be better to improve the DevTools directly. I’ll work on updating them to offer this feature, and hopefully that solves the problem in a more flexible way.

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

Successfully merging this pull request may close these issues.

2 participants