function / @typed/react/Hooks

useFx

Observes a Typed Fx. Unmount, source changes and runtime changes interrupt the previous subscription.

Package version
1.0.0-beta.13
Category
function

Import

import { useFx } from "@typed/react/Hooks";

Signatures

export declare function useFx<A, E, R, ER = never>(source: Fx.Fx<A, E, R>, options?: ReactiveOptions<A, E, R, ER>): AsyncState<A, E | ER>;

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source