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

AFE: Make state updates and session storage updates asynchronous #35532

Merged
merged 1 commit into from Jun 29, 2020

Conversation

bencodeorg
Copy link
Contributor

Noticed that session storage was sometimes not being updated appropriately after submitting the AFE form. Turns out using a callback to update session storage after updating state would sometimes occur after the page URL had already been changed, and as a result wouldn't actually happen.

Testing story

Tested manually.

Reviewer Checklist:

  • Tests provide adequate coverage
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

Copy link
Contributor

@islemaster islemaster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We paired on this. This change is especially important because it keeps us from navigating to the success page before we actually submit the form!

@islemaster islemaster merged commit ef53502 into staging Jun 29, 2020
@islemaster islemaster deleted the afe-async-state-updates branch June 29, 2020 17:17
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

2 participants