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 d618f59
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
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 d618f59

Please sign in to comment.