Skip to content

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

T

readonly state: T

Defined in: .pnpm/@[email protected]_graphql@[email protected]_typescript@6.0.3/node_modules/@storesynk/core/dist/utils/observable.d.ts:10

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

(state) => void

() => void

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

S

(slice) => void

(state) => S

(a, b) => boolean

() => void