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

Fix assignment recovery with multiple tabs #222

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mscotch1
Copy link
Contributor

@mscotch1 mscotch1 commented Dec 8, 2022

Error stemmed from localStorage item being removed in one tab, but the other tab still attempted to load it. Now, there is consistent error checking for a missing item when loading from localStorage.

Recovery items were added to the component's state (as they are used in the rendering process); on failure, recovery items are retrieved from localStorage again so they are up-to-date and user can try loading most recent assignment again.

Error stemmed from `localStorage` item being removed in one tab, but the
other tab still attempted to load it. Now, there is consistent error
checking for a missing item when loading from `localStorage`.

Recovery items were added to the component's state (as they are used in
the rendering process); on failure, recovery items are retrieved from
`localStorage` again so they are up-to-date and user can try loading
most recent assignment again.
@mscotch1
Copy link
Contributor Author

mscotch1 commented Dec 8, 2022

Fixes #214

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.

None yet

1 participant