Skip to content
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

Entries duplicated with store('table_name') / local storage? #171

Open
pwFoo opened this issue Apr 4, 2021 · 1 comment
Open

Entries duplicated with store('table_name') / local storage? #171

pwFoo opened this issue Apr 4, 2021 · 1 comment

Comments

@pwFoo
Copy link

pwFoo commented Apr 4, 2021

Hi @typicaljoe,

I'm searching for a way to load existing data and use defaulf data just as fallback if there is no data in local storage.

But, it fails without default data and with both initial default data an store() activated each page relad duplicates my data in local storage.

Whats wrong here? Any chance to use existing data preferred over additional initial data import?

@pwFoo
Copy link
Author

pwFoo commented Apr 5, 2021

Workaround:

  1. load table data from localstorage
  2. delete localstorage item
  3. activate new store sync

But maybe there is a better way to load existing data from localstorage OR import initial data?

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

No branches or pull requests

1 participant