MCPcopy Create free account
hub / github.com/TanStack/query / cycleFilterScope

Function cycleFilterScope

packages/query-devtools/src/Devtools.tsx:842–848  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

840 })
841
842 const cycleFilterScope = () => {
843 const index = FILTER_SCOPES.indexOf(filterScope())
844 props.setLocalStore(
845 'filterScope',
846 FILTER_SCOPES[(index + 1) % FILTER_SCOPES.length]!,
847 )
848 }
849
850 // Data changes don't change the query count, so data searches need their own trigger
851 const queryDataVersion = createSubscribeToQueryCacheBatcher(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected