Async Memoization with a callable function
Pick
<ContextMemoization
<T
>, "get"
| "set"
| "clear"
| "exists"
| "getter"
>• T
CallableContextMemoization():
T
Async Memoization with a callable function
T
packages/core/src/utils/context.ts:185
readonly
getter: () =>T
T
Pick.getter
packages/core/src/utils/context.ts:112
clear():
undefined
|boolean
Clear the memoization
undefined
| boolean
true if the memoization is cleared, undefined if the context is not found
Pick.clear
packages/core/src/utils/context.ts:142
exists():
undefined
|boolean
Check if the memoization exists
undefined
| boolean
true if the memoization exists, undefined if the context is not found
Pick.exists
packages/core/src/utils/context.ts:152
get():
T
Get the value in memoization or call the getter function
T
the value of the getter function
Pick.get
packages/core/src/utils/context.ts:127
set(
value
):undefined
|WeakMap
<WeakKey
,any
>
Set a new value to the memoization
• value: T
the new value to set
undefined
| WeakMap
<WeakKey
, any
>
the memoization map or undefined if the context is not found
Pick.set
packages/core/src/utils/context.ts:163