Skip to content

Conversation

samholmes
Copy link
Contributor

@samholmes samholmes commented Sep 10, 2024

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)

@samholmes samholmes force-pushed the sam/fix-swap-swapity-swap branch from ed4dab9 to b56c50e Compare September 10, 2024 00:22
control, so there had to ba a reason, but there is not reason given.
Who ever knows why and is reading this comment, please replace this comment
with the reason for the console log.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

It's probably a debugging turd the reviewer missed. Just delete it, bro.

@samholmes samholmes force-pushed the sam/fix-swap-swapity-swap branch from b56c50e to 6a9b694 Compare September 10, 2024 21:44
Because we're flipping the wallets and the amounts for each SwapInput
component and each strategy to change this state is mixed between
imperative and declarative, we converge with incorrect state. This is
because the imperative change to the amounts happens to the SwapInput
before it's wallet state is change (which is the declarative state
change). Ultimately the mix of two techniques on state management is
the cause of the bug.

The solution is to add a delay to the imperative change, to allow for
the component's state to be updated before making the imperative
changes.
@samholmes samholmes force-pushed the sam/fix-swap-swapity-swap branch from 6a9b694 to 3bf9a89 Compare September 10, 2024 21:44
@samholmes samholmes enabled auto-merge September 10, 2024 21:46
@samholmes samholmes merged commit 21fd170 into develop Sep 10, 2024
2 checks passed
@samholmes samholmes deleted the sam/fix-swap-swapity-swap branch September 10, 2024 21:53
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.

2 participants