Observable
Defined in: .pnpm/@[email protected]_graphql@[email protected]_typescript@6.0.3/node_modules/@storesynk/core/dist/utils/observable.d.ts:9
Signals-style reactive primitive.
Vendored from Hydrogen (@shopify/hydrogen, MIT) - its observable is internal
and not exported from the package root, and it’s small + dependency-free, so we
own it outright rather than coupling to a private API of an evolving preview.
Source: packages/hydrogen/src/core/observable.ts
Type Parameters
Section titled “Type Parameters”T
Properties
Section titled “Properties”
readonlystate:T
Defined in: .pnpm/@[email protected]_graphql@[email protected]_typescript@6.0.3/node_modules/@storesynk/core/dist/utils/observable.d.ts:10
Methods
Section titled “Methods”subscribe()
Section titled “subscribe()”Call Signature
Section titled “Call Signature”subscribe(
fn): () =>void
Defined in: .pnpm/@[email protected]_graphql@[email protected]_typescript@6.0.3/node_modules/@storesynk/core/dist/utils/observable.d.ts:11
Parameters
Section titled “Parameters”(state) => void
Returns
Section titled “Returns”() => void
Call Signature
Section titled “Call Signature”subscribe<
S>(fn,selector,isEqual?): () =>void
Defined in: .pnpm/@[email protected]_graphql@[email protected]_typescript@6.0.3/node_modules/@storesynk/core/dist/utils/observable.d.ts:12
Type Parameters
Section titled “Type Parameters”S
Parameters
Section titled “Parameters”(slice) => void
selector
Section titled “selector”(state) => S
isEqual?
Section titled “isEqual?”(a, b) => boolean
Returns
Section titled “Returns”() => void