API Documentation / @pinia/colada / toCacheKey
Function: toCacheKey()
Serializes the given key (query or mutation key) to a string.
Param
The key to serialize.
See
Call Signature
ts
function toCacheKey(key): undefined;Parameters
key
undefined
Returns
undefined
Call Signature
ts
function toCacheKey(key): string;Parameters
key
Returns
string
Call Signature
ts
function toCacheKey(key): string | undefined;Parameters
key
EntryKey | undefined
Returns
string | undefined