Skip to content

Comments

Track dependencies on local storage, and change all session properties that default to a cookie value to use our tracker instead.#307

Open
Torgen wants to merge 7 commits intocjb:masterfrom
Torgen:reactive-storage
Open

Track dependencies on local storage, and change all session properties that default to a cookie value to use our tracker instead.#307
Torgen wants to merge 7 commits intocjb:masterfrom
Torgen:reactive-storage

Conversation

@Torgen
Copy link
Contributor

@Torgen Torgen commented Jan 30, 2018

This means when using ensureNick before displaying a modal, you have to ensure a nick before submitting as well, as the user may log out in another window.
Fixes #266
Fixes #273

…to a cookie value to use reactiveLocalStorage instead.

This means when using ensureNick before displaying a modal, you have to ensure a nick before submitting as well, as the user may log out in another window.
Reactive storage does that for us.
Torgen added a commit to Torgen/codex-blackboard that referenced this pull request Feb 7, 2018
This means not only will it remember how you arranged them, if you have several open they'll all adjust when you change one.
This will eventually fix cjb#130, but it depends on both cjb#300 and cjb#307 so I can't cherry pick it into either PR.
Torgen and others added 4 commits February 8, 2018 23:45
It seems to have a bug where it gets into an infinite loop if you set a value twice in quick succession and have three windows open, because it writes the values back to the storage area when it may already have been updated with the replacement value. This version just keeps track of the dependencies.
@Torgen Torgen changed the title Add reactive-storage, and change all session properties that default to a cookie value to use reactiveLocalStorage instead. Track dependencies on local storage, and change all session properties that default to a cookie value to use our tracker instead. Jan 12, 2019
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

Successfully merging this pull request may close these issues.

1 participant