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

feat: Add Refetch Interval to History Data #69

Merged
merged 6 commits into from
Jun 12, 2024
Merged

Conversation

ChangoMan
Copy link
Collaborator

Description

  • Refactor the useGetHistory hook to use React Query to fetch the History Data
  • Use the scaffoldConfig.pollingInterval as the refetchInterval which is currently 30 seconds

To test, you can set the pollingInterval to something like 3 seconds locally. Send the burner wallet some funds and the history should update itself (without the need to re-show that initial loading spinner). We can adjust the interval if needed.

This should address #54

Copy link

vercel bot commented Jun 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
burnerwallet-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 12, 2024 7:33am

Copy link
Member

@Pabl0cks Pabl0cks left a comment

Choose a reason for hiding this comment

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

Working great to me! TYSM Hunter!

Tried on sepolia and optimism, sending funds and NFT

Copy link
Member

@damianmarti damianmarti left a comment

Choose a reason for hiding this comment

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

Looking good!

@damianmarti damianmarti merged commit bc47b27 into main Jun 12, 2024
3 checks passed
@damianmarti damianmarti deleted the polling-history branch June 12, 2024 12:48
@damianmarti damianmarti restored the polling-history branch June 12, 2024 12:48
@damianmarti damianmarti deleted the polling-history branch June 12, 2024 12:49
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