You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've come across a situation where I need to use Lockr in two different places with different prefixes. But Locker.prefix = 'new_prefix_' will just override the old one. Is this possible at all?
Thanks for this amazing library!
The text was updated successfully, but these errors were encountered:
I'm not sure if the latest rewrite in Typescript and the subsequent release of v0.9.0-beta.2 solves this issue. Honestly, I don't think it does by default, but I'm confident it lays the foundation to offer this kind of functionality.
I would expect to be able to explicitly set the prefix key before using any setter functions, but then you will have to make sure that any asynchronous code is not affected by changing the prefix in other place in your codebase.
Let me know how that works for you, or if you need any clarifications.
I've come across a situation where I need to use
Lockr
in two different places with different prefixes. ButLocker.prefix = 'new_prefix_'
will just override the old one. Is this possible at all?Thanks for this amazing library!
The text was updated successfully, but these errors were encountered: