UNPKG

@sanity/sdk

Version:
11 lines (10 loc) 496 B
/** * When a query has no more subscribers, its state is cleaned up and removed * from the store. A delay used to prevent re-creating resources when the last * subscriber is removed quickly before another one is added. This is helpful * when used in a frontend where components may suspend or transition to * different views quickly. */ export const QUERY_STATE_CLEAR_DELAY = 1000 export const QUERY_STORE_API_VERSION = 'v2025-05-06' export const QUERY_STORE_DEFAULT_PERSPECTIVE = 'drafts'