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

initial React.Suspense support in client #130

Merged
merged 10 commits into from
Jul 12, 2024
Merged

initial React.Suspense support in client #130

merged 10 commits into from
Jul 12, 2024

Conversation

ejmg
Copy link
Collaborator

@ejmg ejmg commented Jul 12, 2024

Part of #32, #40, #17, #124, and #129

Summary

This PR added:

  • a basic skeleton component
  • React.Suspense + tanstack useSuspenseQuery support to:
    • /block/[ht]
    • /transaction/[hash]
    • /blocks
    • /transactions
  • Fixing a pretty big bug with how tanstack was querying and caching some routes because of incorrect suspense docs
  • prefetching to /block and /transaction
  • Reworked paginated-data-table.tsx component and how TransactionsTable and BlocksTable consume it + use tanstack/table

This PR was painful. A lot of small logistical stuff with how queries were structured and used + poor documentation but the UX/UI of the client has benefited greatly from it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant