function / @typed/vue

useAsyncData

Derive display state without starting another Effect subscription.

Package version
1.0.0-beta.13
Category
function

Import

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

Signatures

export declare function useAsyncData<A, E>(data: Readonly<ShallowRef<Data.AsyncData<A, E>>>): AsyncDataView<A, E>;

Other public imports

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

Source