Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 718 Bytes

SetDataOptions.md

File metadata and controls

18 lines (13 loc) · 718 Bytes
id SetDataOptions
title SetDataOptions

Defined in: packages/query-core/src/types.ts:2413

Options for writing data into the cache, e.g. via queryClient.setQueryData(). updatedAt overrides the timestamp the data is recorded with, which is what staleness is measured from; omit it to use the current time.

Properties

Property Type Description
updatedAt? number The timestamp to record the data with, instead of the current time. Staleness is measured from it.