rt2zz / redux-persist

persist and rehydrate a redux store
MIT License
12.91k stars 863 forks source link

Session storage problem #105

Closed testing-some-stuff-1 closed 8 years ago

testing-some-stuff-1 commented 8 years ago

Hello,

I'm getting an empty object from getStoredState with asyncSessionStorage as storage.

getStoredState({}, (err, storedState) => { console.log(storedState); // This is empty object });

If I do use asyncLocalStorage, storedState is correctly defined.

I can see the session storage is there, so storing it isn't the problem. I can even write sessionStorage into my console and see that my current redux state is in it.

Would appreciate your help,

Thanks!

testing-some-stuff-1 commented 8 years ago

My bad. Forgot to put configs in getStoredState... sorry about that :)