Skip to content

Fix assignment recovery with multiple tabs#222

Open
mscotch1 wants to merge 1 commit intojaltekruse:masterfrom
mscotch1:214-multiple-tabs-recovery-error
Open

Fix assignment recovery with multiple tabs#222
mscotch1 wants to merge 1 commit intojaltekruse:masterfrom
mscotch1:214-multiple-tabs-recovery-error

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.

1 participant