Skip to content

Add opt-in Suspense support to hooks#17

Merged
GuiBibeau merged 4 commits intomainfrom
feat/hooks-suspense-opt-in
Nov 24, 2025
Merged

Add opt-in Suspense support to hooks#17
GuiBibeau merged 4 commits intomainfrom
feat/hooks-suspense-opt-in

Conversation

@GuiBibeau
Copy link
Collaborator

@GuiBibeau GuiBibeau commented Nov 21, 2025

Summary

  • add Suspense-aware helper wiring for account/balance/SPL token hooks gated by QuerySuspenseContext
  • add localized Suspense boundaries per tab in the react example app
  • keep default behavior unchanged for non-suspense consumers; door is open for further hook coverage
  • scope publishing to @solana/client and @solana/react-hooks only; move compat parity tests under tests/

Testing

  • pnpm test
  • pnpm turbo run test --filter @solana/example-react-hooks
  • pnpm turbo run test --filter @solana/web3-compat-parity-tests

Changeset

  • updated .changeset/opt-in-suspense-hooks.md (patch bump for @solana/react-hooks)
  • changeset config ignores @solana/web3-compat for publishing

@GuiBibeau GuiBibeau merged commit d5ef90e into main Nov 24, 2025
2 checks passed
@github-actions github-actions bot mentioned this pull request Nov 24, 2025
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.

1 participant