the debounce timeout in milliseconds. Used to wait until UI completes getting rendered.
Protectedcallbackspending callbacks.
Tracks the in-flight GraphQL requests. Maps the operations to their count.
ProtectedtimeoutProtectedtimeouttrue if there are any pending broadcast, false otherwise.
ProtectedcancelDebounces the provided callback function.
the cb to be debounced.
Should be called when making GraphQL request. Used to stop the timer until the corresponding response is received.
ProtectedisProtectedresetSets the number of milliseconds to debounce synchronization.
the new timeout value in milliseconds.
Protectedtimeout
Debounces state synchronization to optimize UI rendering and network performance.
Purpose: Group broadcasts belonging to the same UI rendering chain together. This prevents race conditions, redundant network requests, and invalid Apollo Client state.
How it works:
See
For a detailed visual lifecycle, refer to the architecture diagram
Example