gsklee / ngStorage

localStorage and sessionStorage done right for AngularJS.
MIT License
2.34k stars 461 forks source link

data stored disappears on refresh #257

Open alekaizer opened 7 years ago

alekaizer commented 7 years ago

Hi guys,

after updating the module, data I store are deleted after I refresh the page.

What can it be ?

davef800 commented 7 years ago

One way this could happen is if the user's browser is configured to "Block sites from setting any data". See chrome://settings/content for example.

OxLeon commented 7 years ago

I have the same problem :(

glebtv commented 7 years ago

Had the same problem, check if you are using storage2 https://github.com/pqx/storage2 It comes as a dependency to typeahead-js and it is broken (clears localstorage on every page load)