Skip to content

Frontend type keystores #2389

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

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

public componentDidMount() {
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