-
Notifications
You must be signed in to change notification settings - Fork 0
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
Refetch output amount claim page #738
Conversation
This pull request is automatically being deployed by Amplify Hosting (learn more). |
e0defb1
to
cc3d165
Compare
cc3d165
to
6faa4a4
Compare
Instead of duplicating the hook I added an additional check in the useEffect which disables the refetch after an outputAmount has been found... tested on both sides and working |
c9da7c6
to
4e8d137
Compare
* claim page: refetch output amount * fix refresh automatically claim page on mode change * improve amount display * add refetch check * fix build * add sugar syntax --------- Co-authored-by: Phoebe Lartisant <[email protected]>
maybe we can improve because the refetch is never turn off. But the claim button will disapear if user change tab or windows. To improve: duplicate useFetchBurnEvent, name it useFetchClaimEvent and adatpt the use effect that turn
enableRefetch
to false.