Hello! I'm trying to use the new expire plugin within a custom namespace like this:
import store from 'store';
import expirePlugin from 'store/plugins/expire';
store.addPlugin(expirePlugin);
const ns = store.namespace('foo');
ns.set('bar', 'test', new Date().getTime() + 60000);
Hello! I'm trying to use the new expire plugin within a custom namespace like this:
What I get in localstorage is:
So for what I understand if I save data in another namespace with the same key:
the expire timeout for the key
bar
will be overwritten.It is possible to factor custom namespaces when using the expire plugin? Thanks.