docs(kit): update React and RPC references for kit 7.1.0 - #68
Open
amilz wants to merge 1 commit into
Open
Conversation
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.
Contributor
Greptile SummaryUpdates the Solana development references for Kit 7.1.0.
Confidence Score: 5/5The 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
Reviews (1): Last reviewed commit: "docs(kit): update React and RPC referenc..." | Re-trigger Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updates the
solana-devskill references for@solana/kitv7.1.0.Two statements the release made false:
references/kit/react.mdtold readersisAbortErrorcomes from@solana/promises, "which@solana/kit7 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.useClient'sTClienttype parameter as "expected to become required." As of@solana/react7.1.0 (#1841) theobjectdefault is gone and a bareuseClient()no longer compiles — stated as current fact. Fixed one remaining bareuseClient()infrontend.mdprose 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 asundefinedrather than throwing.usePlanTransaction,usePlanTransactions,useSendTransaction,useSendTransactions(#1869) — with each hook's accepted input and resolved value.useAirdrop(#1879) — resolves with aSignature, orundefinedwhen the airdrop is applied without a transaction.useSubscriptionQuery/useTrackedDataQuerynow surfaceSOLANA_ERROR__SUBSCRIBABLE__STREAM_CLOSED_WITHOUT_ERROR(#1811); the SWR adapters are unaffected.getTransactionsForAddress(#1776) inkit/advanced.mdandrpc-quick-lookups.md— replaces thegetSignaturesForAddress+ N×getTransactionfan-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/reactsource rather than the changelog prose.Test plan
tests/trigger benchmark not run — only reference content changed;SKILL.mddescription and triggers are untouched, so the benchmark has nothing new to measurePart of DEV-896.