SparkletreeContextValue
Defined in: react/src/provider.tsx:38
@sparkletree/react — React bindings for the SparkleTree SDK.
Two layers, and the boundary between them is the whole design:
- PRIMITIVES (
StreamText,useIsland) live in npm. They speak the wire, own the choreography, and carry the trust chrome structurally. They are ours to patch. - COMPONENTS (
Hero,Cta) also ship as copy-paste source throughsparkletree add. Those copies are the customer’s, and they are wire-ignorant by construction — no event names, no protocol versions, no timing constants — so a protocol change never obliges a customer to re-copy anything.
Properties
Section titled “Properties”apiBase
Section titled “apiBase”apiBase:
string
Defined in: react/src/provider.tsx:39
apiBaseProvenance
Section titled “apiBaseProvenance”apiBaseProvenance:
"key"|"explicit"
Defined in: react/src/provider.tsx:42
Where apiBase came from — a key-derived base is an unsigned address
and earns no mint POST unless first-party (see core’s maybeMint, S-2).
context
Section titled “context”context:
Record<string,unknown>
Defined in: react/src/provider.tsx:45
Context snapshot sent with every request in this page view.
fetchImpl?
Section titled “fetchImpl?”
optionalfetchImpl?: (input,init?) =>Promise<Response>
Defined in: react/src/provider.tsx:52
Test seam; defaults to the platform fetch.
Parameters
Section titled “Parameters”URL | RequestInfo
RequestInit
Returns
Section titled “Returns”Promise<Response>
mintToken?
Section titled “mintToken?”
optionalmintToken?:MintTokenSource
Defined in: react/src/provider.tsx:50
Signed mint token for fragment minting, if the page was given one.
organizationId
Section titled “organizationId”organizationId:
string
Defined in: react/src/provider.tsx:43
prefersStandard
Section titled “prefersStandard”prefersStandard:
boolean
Defined in: react/src/provider.tsx:47
Viewer asked for the standard (unmarked, unadapted-looking) version.
setPrefersStandard
Section titled “setPrefersStandard”setPrefersStandard: (
value) =>void
Defined in: react/src/provider.tsx:48
Parameters
Section titled “Parameters”boolean
Returns
Section titled “Returns”void