-
-
Notifications
You must be signed in to change notification settings - Fork 235
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
Naming events #618
Comments
I think this is something that can be built ontop of MMKV in JS side, so yea we could implement this. PRs are much appreciated. |
Guten Tag, Hans here. Note New features, bugfixes, updates and other improvements are all handled mostly by |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be nice if we could name events to be used with the
useMMKVListner
, so that when we do something like thisstorage.set('user', JSON.stringify(user))
, we could also pass a third parameter as the event name.This is nice bacause it'd be easier to filter events on the listener hook, like a
switch
orifs
. In some cases, you don't want the function inside the hook to be called at every change in the storage, so you need some sort of varification for calling the function only when wanted; named events could ease that a lot.The text was updated successfully, but these errors were encountered: