function / @typed/react

useAsyncData

Flattens an Fx of AsyncData, preserving both its state and any source/runtime failures.

Package version
1.0.0-beta.13
Category
function

Import

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

Signatures

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

Other public imports

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

Source