MemoizeOptions
MemoizeOptions<
A> =object
Defined in: packages/core/src/function/memoize.ts:3
Type Parameters
Section titled “Type Parameters”A extends unknown[]
Properties
Section titled “Properties”keyOf?
Section titled “keyOf?”
optionalkeyOf?: (args) =>unknown
Defined in: packages/core/src/function/memoize.ts:17
A function that generates a cache key from the arguments passed to the memoized function.
By default, the first argument is used as the cache key.
Note: If the first argument is not a primitive value, you may want to
provide a custom keyOf function that returns a primitive value to avoid
unexpected behavior.
Parameters
Section titled “Parameters”A
The arguments passed to the memoized function.
Returns
Section titled “Returns”unknown
A primitive value that can be used as a cache key.