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

Is it possible to specify the file path for hooks? #410

Closed
nescroft opened this issue Jun 20, 2022 · 1 comment
Closed

Is it possible to specify the file path for hooks? #410

nescroft opened this issue Jun 20, 2022 · 1 comment

Comments

@nescroft
Copy link

Basically I'm storing a lot of local data and my app started getting slow because I'm storing large objects all in one file (the default). So i'd like to keep the basic structure of my app with hooks but put each object in a separate file. Is this possible?

@mrousavy
Copy link
Owner

Hey! Yea, if you supply a custom MMKV instance as a last parameter to the hook :)

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

No branches or pull requests

2 participants