Skip to main content

createCoreHook

@webda/core


Function: createCoreHook()

createCoreHook<K>(hookName): [<T>() => T, (value) => void]

Defined in: packages/core/src/core/instancestorage.ts:76

Create a hook that is present in the instance storage

Type Parameters​

K​

K extends "application" | "operations" | "core" | "contextProviders" | "caches" | "router" | "interruptables" | "operationAuthorizers" | "protectedResources" | "secondFactors" | "loginMfa"

Parameters​

hookName​

K

the hook name

Returns​

[<T>() => T, (value) => void]

the result