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

Jon/fix/swap-navigation #5105

Merged
merged 2 commits into from
Jun 20, 2024
Merged

Jon/fix/swap-navigation #5105

merged 2 commits into from
Jun 20, 2024

Conversation

Jon-edge
Copy link
Collaborator

@Jon-edge Jon-edge commented Jun 19, 2024

Hack-fix React Navigation bug for swap scenes

  • CircleTimer never gets unmounted as expected. Stale timers from prior swaps will keep firing indefinitely.
  • SwapConfirmationScene also remains mounted when unfocused, and auto-refreshes with stale data from swaps that never approved can happen from unmounted instances. This can occur when the scene is focused with an unapproved quote, and the Exchange tab is tapped. That should fully reset the flow/state to the beginning but no longer does post-nav upgrade.

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Requirements

If you have made any visual changes to the GUI. Make sure you have:

  • Tested on iOS device
  • Tested on Android device
  • Tested on small-screen device (iPod Touch)
  • Tested on large-screen device (tablet)

- CircleTimer never gets unmounted as expected. Stale timers from prior swaps will keep firing indefinitely.
- SwapConfirmationScene also remains mounted when unfocused, and auto-refreshes with stale data from swaps that never approved can happen from unmounted instances. This can occur when the scene is focused with an unapproved quote, and the Exchange tab is tapped. That *should* fully reset the flow/state to the beginning but no longer does post-nav upgrade.
@Jon-edge Jon-edge enabled auto-merge June 20, 2024 17:56
@Jon-edge Jon-edge merged commit 11ac569 into develop Jun 20, 2024
2 checks passed
@Jon-edge Jon-edge deleted the jon/fix/swap-navigation branch June 20, 2024 18:08
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