-
-
Notifications
You must be signed in to change notification settings - Fork 190
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
Possible to change LocalStorage Item name? #696
Comments
I guess this is not documented here. const store = createStore(model, {
name: "THE_NAME_YOU_WANT",
}) |
Hi @viczaca, thank you for your response. I have tried but doesn't work for me. I am also using persist. here's what doesn't work
|
I believe the intention of the It's an interesting angle to use the name as the mechanism of persisting the store. I'll look into this. |
@ctrlplusb I thought this was already a feature. This is my code. I'm using localforage as my persistent storage. const store = createStore<Model>(persist(model, { storage: localforage }), {
name: 'MY_STORE_NAME',
}); Maybe the name is related to localforage and not easy-peasy. BTW, I'm using easy-peasy 5.0.4. |
How is "persist" working in react-native? |
You will have to use |
Hi,
is it possible to rename my easy-peasy persist localStorage name (key name)?
Currently it stores something like this :
Thanks in advance :)
The text was updated successfully, but these errors were encountered: