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

Refetch output amount claim page #738

Merged
merged 6 commits into from
Jun 19, 2024

Conversation

Thykof
Copy link
Contributor

@Thykof Thykof commented Jun 12, 2024

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.

Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-738.d1u92gh798a6e1.amplifyapp.com

@Thykof Thykof requested review from pivilartisant and peterjah June 12, 2024 16:23
@Thykof Thykof force-pushed the refetch-output-amount-claim-page branch from e0defb1 to cc3d165 Compare June 13, 2024 12:43
@pivilartisant pivilartisant force-pushed the refetch-output-amount-claim-page branch from cc3d165 to 6faa4a4 Compare June 18, 2024 08:30
@pivilartisant
Copy link
Contributor

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.

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

@pivilartisant pivilartisant force-pushed the refetch-output-amount-claim-page branch from c9da7c6 to 4e8d137 Compare June 19, 2024 13:32
@pivilartisant pivilartisant merged commit c4cce52 into integration Jun 19, 2024
3 checks passed
@pivilartisant pivilartisant deleted the refetch-output-amount-claim-page branch June 19, 2024 13:51
peterjah pushed a commit that referenced this pull request Jul 16, 2024
* 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]>
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.

3 participants