-
Notifications
You must be signed in to change notification settings - Fork 20
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
Local persistence service for cells #315
Comments
what does localStorage.getItem('someItemThatDoesNotExist') return? I.e. what if you try to get a cell before you've called save or watch? |
it returns null out of localstorage. It returns an empty cell if |
is it work having a getAndWatch method that would allow you to both get and watch the cell? I feel like that is how I'd normally want to use this - get a cell that mirrors the local storage to cover both the case of a cell that isn't saved yet and one that is. What happens if you change the local storage via a separate tab? Is there a way to pick up those changes? Or will the 2 tabs compete? |
This code bit by @stonecalvin was found in nexus-robot:
|
I'd like to persist cells to local storage and then recreate that cell later. Here's my attempt:
The text was updated successfully, but these errors were encountered: