@epikodelabs/streamix / react/src/public-api / SuspenseResource
Interface: SuspenseResource<T>
Defined in: projects/libraries/streamix/react/src/lib/suspense.ts:5
Type Parameters
T
T
Methods
read()
read():
T
Defined in: projects/libraries/streamix/react/src/lib/suspense.ts:13
Reads the atom's current value.
Throws a promise on the first read before the atom has produced a value — suspending the nearest <Suspense> boundary — and throws the atom's error if it has failed. Once resolved, reads are synchronous.
Returns
T