Liking cljdoc? Tell your friends :D
All platforms.

io.factorhouse.rfx.store


IStoreclj/sprotocol

Protocol for interacting with a shared state store, supporting both React component access and external access methods.

Protocol for interacting with a shared state store, supporting both React component access
and external access methods.

next-state!clj/s

(next-state! _ inputs)

Transitions the store to its next state based on some inputs.

Transitions the store to its next state based on some inputs.

snapshotclj/s

(snapshot this)

Returns the current internal state of the store for inspection or debugging purposes. Intended to be called outside a React context.

Returns the current internal state of the store for inspection or debugging purposes. Intended to be called outside a React context.

subscribeclj/s

(subscribe this subscription)

Returns the current value of the subscription. Intended to be called outside a React context.

Returns the current value of the subscription. Intended to be called outside a React context.

use-subclj/s

(use-sub this subscription)

Returns a React hook to access the subscription within a React component. Usage: (let [state (use-sub store [:subscription-id] ...)

The returned hook allows components to reactively subscribe to changes in the store.

Returns a React hook to access the subscription within a React component.
Usage: `(let [state (use-sub store [:subscription-id] ...)`

The returned hook allows components to reactively subscribe to changes in the store.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close