Skip to content

@epikodelabs/streamix


@epikodelabs/streamix / react/src/public-api / useAtomValue

Function: useAtomValue() ​

useAtomValue<T>(source): T

Defined in: projects/libraries/streamix/react/src/lib/runtime.ts:248

Subscribes to a Streamix source using React's concurrent-safe external-store contract. It is the non-compiler equivalent of a direct JSX atom read.

Type Parameters ​

T ​

T

Parameters ​

source ​

DependencySource<T>

Returns ​

T

Released under the MIT License.