Skip to content

@vtj


@vtj / ui / useLoader

Function: useLoader()

useLoader<T, P>(loaderRef, defaultValue, params?): UseLoaderResult<T>

Type Parameters

T = any

P = any

Parameters

loaderRef

MaybeRef<T | (params?) => T | Promise<T>>

defaultValue

T

params?

P

Returns

UseLoaderResult<T>

Defined in

packages/ui/types/hooks/useLoader.d.ts:7

Released under the MIT License.