Skip to content

docs(kit): update React and RPC references for kit 7.1.0 - #68

Open
amilz wants to merge 1 commit into
mainfrom
chore/kit-7.1.0
Open

docs(kit): update React and RPC references for kit 7.1.0#68
amilz wants to merge 1 commit into
mainfrom
chore/kit-7.1.0

Conversation

@amilz

@amilz amilz commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

Updates the solana-dev skill references for @solana/kit v7.1.0.

Two statements the release made false:

  • references/kit/react.md told readers isAbortError comes from @solana/promises, "which @solana/kit 7 does not re-export — install that package explicitly if you need it." kit 7.1.0 (#1824) re-exports @solana/promises, so following that instruction now adds a redundant dependency. It imports directly from @solana/kit.
  • The same file described useClient's TClient type parameter as "expected to become required." As of @solana/react 7.1.0 (#1841) the object default is gone and a bare useClient() no longer compiles — stated as current fact. Fixed one remaining bare useClient() in frontend.md prose that would not compile as written.

New API coverage:

  • usePayer / useIdentity (#1876) — including the gotcha that a throwing plugin value (wallet plugin with no wallet connected) surfaces as undefined rather than throwing.
  • usePlanTransaction, usePlanTransactions, useSendTransaction, useSendTransactions (#1869) — with each hook's accepted input and resolved value.
  • useAirdrop (#1879) — resolves with a Signature, or undefined when the airdrop is applied without a transaction.
  • useSubscriptionQuery / useTrackedDataQuery now surface SOLANA_ERROR__SUBSCRIBABLE__STREAM_CLOSED_WITHOUT_ERROR (#1811); the SWR adapters are unaffected.
  • getTransactionsForAddress (#1776) in kit/advanced.md and rpc-quick-lookups.md — replaces the getSignaturesForAddress + N× getTransaction fan-out. Documented as already live at major providers but not universally available, so readers check their endpoint first.

Every hook signature, argument list, and return type here was verified against the @solana/react source rather than the changelog prose.

Test plan

  • Re-read every changed file end-to-end for coherence with surrounding untouched sections
  • Verified added markdown links and anchors resolve to real headings
  • tests/ trigger benchmark not run — only reference content changed; SKILL.md description and triggers are untouched, so the benchmark has nothing new to measure

Part of DEV-896.

Correct two statements that kit 7.1.0 invalidated: @solana/promises is now
re-exported from @solana/kit, and useClient's TClient type parameter is
required rather than merely expected to become so.

Document the new @solana/react client capability hooks (usePayer, useIdentity,
usePlanTransaction(s), useSendTransaction(s), useAirdrop), the new stream-closed
error surfaced by the TanStack Query adapters, and getTransactionsForAddress.
@linear

linear Bot commented Aug 14, 2026

Copy link
Copy Markdown

DEV-896

@greptile-apps

greptile-apps Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Updates the Solana development references for Kit 7.1.0.

  • Corrects useClient and isAbortError version guidance.
  • Documents new React capability, transaction, and airdrop hooks.
  • Adds TanStack Query subscription-error behavior.
  • Introduces getTransactionsForAddress guidance with an endpoint-availability caveat.

Confidence Score: 5/5

The documentation-only PR appears safe to merge with no concrete correctness or security issues identified.

The updated examples are internally consistent, and the new RPC guidance explicitly preserves compatibility by warning readers to verify endpoint support before using the non-universal method.

Important Files Changed

Filename Overview
skills/solana-dev/references/frontend.md Updates the remaining bare useClient() example to use the application client type.
skills/solana-dev/references/kit/advanced.md Adds Kit 7.1 transaction-history RPC coverage and clearly notes that endpoint support is not universal.
skills/solana-dev/references/kit/react.md Revises version-specific React guidance and documents the newly introduced client capability hooks and error behavior.
skills/solana-dev/references/rpc-quick-lookups.md Describes getTransactionsForAddress as an optional provider capability that can replace transaction-fetch fan-out.

Reviews (1): Last reviewed commit: "docs(kit): update React and RPC referenc..." | Re-trigger Greptile

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