function / @typed/react

useRefSubject

Observes existing Typed state and exposes transactional writes with typed Exit results.

Package version
1.0.0-beta.13
Category
function

Import

import { useRefSubject } from "@typed/react";

Signatures

export declare function useRefSubject<A, E, R, ER = never>(ref: RefSubject.RefSubject<A, E, R>, options?: ReactiveOptions<A, E, R | Scope.Scope, ER>): RefSubjectState<A, E | ER>;

Other public imports

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

Source