Skip to content

API Documentation / @pinia/colada / serializeQueryCache

Function: serializeQueryCache()

ts
function serializeQueryCache(queryCache): Record<string, _UseQueryEntryNodeValueSerialized>;

Serializes the query cache to a compressed version. Used during SSR.

Parameters

queryCache

Store

query cache

Returns

Record<string, _UseQueryEntryNodeValueSerialized>

Released under the MIT License.