Skip to content

Conversation

@thisconnect
Copy link
Collaborator

superseds #2307

Used mounted hook to only update AddBuyReceiveOnEmptyBalances state
if the component is actually mounted.
@thisconnect thisconnect requested a review from benma November 30, 2023 08:42
this.registerTouchEvents();
getKeystores().then(keystores => this.setState({ keystores }, () => {
this.unsubscribeFn = subscribeKeystores(keystores => this.setState({ keystores }));
}));
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Looking at this again, I think it's a bit hard to read (especially the setState callback), I'll change the formatting.

Copy link
Contributor

@benma benma left a comment

Choose a reason for hiding this comment

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

tACK

@thisconnect thisconnect merged commit 5bda68d into BitBoxSwiss:staging-watchonly Nov 30, 2023
@thisconnect thisconnect deleted the frontend-type-keystores-rebased-watchonly branch April 18, 2025 09:50
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