Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Small error in the 'Customize Storage' sample snippet? #50

Closed
oscar26 opened this issue Sep 5, 2017 · 2 comments
Closed

Small error in the 'Customize Storage' sample snippet? #50

oscar26 opened this issue Sep 5, 2017 · 2 comments

Comments

@oscar26
Copy link

oscar26 commented Sep 5, 2017

Hi,

First of all, great plugin over here, I could solve my data persistence problem.

While using your plugin along with js-cookie, my app could not keep the state when refreshing the page and then I noticed that the getItem function in the provided example was using the function Cookies.getJSON(key) to retrieve the parsed data. So I changed it to retrieve the unparsed data (Cookies.get(key)) and worked beautifully.

Perhaps a little error in there or I failed to understand your plugin. Anyway, thanks again for your plugin!

@robinvdvleuten
Copy link
Owner

@oscar26 thanks for your kind words! The issue with the example is actually fixed just now by PR #52.

@oscar26
Copy link
Author

oscar26 commented Sep 9, 2017

Great! and thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants