Skip to content

Commit

Permalink
A different experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-Lucas committed Dec 29, 2024
1 parent 8f72f59 commit 6345702
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/query-core/src/queryClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { focusManager } from './focusManager'
import { onlineManager } from './onlineManager'
import { notifyManager } from './notifyManager'
import { infiniteQueryBehavior } from './infiniteQueryBehavior'
import type { UnsetMarker } from './symbols'
import type {
CancelOptions,
DataTag,
Expand All @@ -39,7 +40,6 @@ import type {
RefetchQueryFilters,
ResetOptions,
SetDataOptions,
UnsetMarker,
} from './types'
import type { QueryState } from './query'
import type { MutationFilters, QueryFilters, Updater } from './utils'
Expand Down
6 changes: 6 additions & 0 deletions packages/query-core/src/symbols.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export const dataTagSymbol = Symbol('dataTagSymbol')
export type dataTagSymbol = typeof dataTagSymbol
export const dataTagErrorSymbol = Symbol('dataTagErrorSymbol')
export type dataTagErrorSymbol = typeof dataTagErrorSymbol
export const unsetMarker = Symbol('unsetMarker')
export type UnsetMarker = typeof unsetMarker
7 changes: 1 addition & 6 deletions packages/query-core/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* istanbul ignore file */

import type { UnsetMarker, dataTagErrorSymbol, dataTagSymbol } from './symbols'
import type { DehydrateOptions, HydrateOptions } from './hydration'
import type { MutationState } from './mutation'
import type { FetchDirection, Query, QueryBehavior } from './query'
Expand Down Expand Up @@ -42,12 +43,6 @@ export type DefaultError = Register extends {

export type QueryKey = ReadonlyArray<unknown>

export const dataTagSymbol = Symbol('dataTagSymbol')
export type dataTagSymbol = typeof dataTagSymbol
export const dataTagErrorSymbol = Symbol('dataTagErrorSymbol')
export type dataTagErrorSymbol = typeof dataTagErrorSymbol
export const unsetMarker = Symbol('unsetMarker')
export type UnsetMarker = typeof unsetMarker
export type AnyDataTag = {
[dataTagSymbol]: any
[dataTagErrorSymbol]: any
Expand Down

0 comments on commit 6345702

Please sign in to comment.