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

fix: Accounts render safeguard, pool useEffect fixes #1906

Merged
merged 2 commits into from
Jan 27, 2024

Conversation

rossbulat
Copy link
Collaborator

Introduces a safe-guard to prevent unnecessary re-renders on account updates. Since the UI only cares about the address and name of the account, accounts are ordered and stringified with these properties only. The result of this function is used as hook dependencies in ImportedAccounts.

Miscellaneous useEffect fixes for pools also have been applied to prevent resetting of memberships state.

@rossbulat rossbulat changed the title fix: Render safe guards, pool useEffect fixes fix: Accounts render safeguard, pool useEffect fixes Jan 27, 2024
@rossbulat rossbulat merged commit 7c0212f into main Jan 27, 2024
9 checks passed
@rossbulat rossbulat deleted the rb-render-safe-guards branch January 27, 2024 22:07
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.

1 participant