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

[Maintenance] Investigate extra requests useERC20Claim #1495

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

Da-Colon
Copy link
Contributor

@Da-Colon Da-Colon commented Mar 26, 2024

Branched from #1486

Investigate Additional Requests in useERC20Claim hook

Multiple re-renders was causing this to run this request more than once. Added a conditional to only allow this to fire once.
Closes #1456

@Da-Colon Da-Colon self-assigned this Mar 26, 2024
@Da-Colon Da-Colon requested review from adamgall and mudrila March 26, 2024 19:26
@Da-Colon Da-Colon linked an issue Mar 26, 2024 that may be closed by this pull request
@Da-Colon Da-Colon changed the title reduce the number of requests by adding load key [Maintenance] Investigate extra requests useERC20Claim Mar 26, 2024
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Most DAOs won't have a ERC20Claim contract. (assumingly). Maybe we need a better way to check for claiming contract?

But for now. It did not have anything preventing it from reattempting the requests as the app's initial render settles. This update adds a loadkey to prevent additional loads.

@Da-Colon Da-Colon merged commit 9e3e137 into remove-contract-state-01 Mar 26, 2024
3 checks passed
@Da-Colon Da-Colon deleted the reduce-request-useERC20Claim branch March 26, 2024 20: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.

Investigate Multiple Requests useERC20Claim
3 participants