Skip to main content

createCoreHook

@webda/core


Function: createCoreHook()

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

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

Create a hook that is present in the instance storage

Type Parameters​

K​

K extends "application" | "operations" | "core" | "contextProviders" | "caches" | "router" | "interruptables"

Parameters​

hookName​

K

the hook name

Returns​

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

the result