zoomsphere / ngx-store

Angular decorators to automagically keep variables in HTML5 LocalStorage, SessionStorage, cookies; injectable services for managing and listening to data changes and a bit more.
https://www.npmjs.com/package/ngx-store
ISC License
167 stars 41 forks source link

Cannot update array value once it is set #65

Open TwunTee opened 6 years ago

TwunTee commented 6 years ago

I am able to set the array value for an array stored in local storage using the localstorage decorator. But i am not able to update the value once it is set, neither push or concat seem to work either.Tried using save method too still cant update the array, the value that is set at first remains permanently

TwunTee commented 6 years ago

I am able to update using SharedStorage and cookie storage though, only localstorage has that bug

lonelywm commented 5 years ago

+1

DanielKucal commented 5 years ago
  1. Are you sure anything doesn't rewrite your data in local storage?
  2. Which web browser do you use?
  3. Please try it with session storage and let me know if it works for you.
  4. Can you please post your code (all usages of ngx-store decorators and config)?
  5. Can you enable debugging and try to locate the problem?