-
-
Notifications
You must be signed in to change notification settings - Fork 289
Open
Description
It would be nice if we could name events to be used with the useMMKVListner
, so that when we do something like this storage.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
or ifs
. 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.
Metadata
Metadata
Assignees
Labels
No labels