Skip to content

Commit

Permalink
chore: notes
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Dec 23, 2023
1 parent 1826a65 commit f109ba7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/use-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export interface UseQueryReturn<TResult = unknown, TError = Error>
Pick<UseQueryPropertiesEntry<TResult, TError>, 'refresh' | 'refetch'> {}

export type UseQueryKey = string | symbol
// TODO:
// | Array<string | symbol>

export interface UseQueryOptions<TResult = unknown> {
key: UseQueryKey | (() => UseQueryKey)
Expand All @@ -35,8 +37,9 @@ export interface UseQueryOptions<TResult = unknown> {
gcTime?: number

initialData?: () => TResult
refetchOnWindowFocus?: boolean | 'force'
refetchOnReconnect?: boolean | 'force'
// TODO: rename to refresh and use refresh instead by default?
refetchOnWindowFocus?: boolean // TODO: | 'force' or options to adapt this
refetchOnReconnect?: boolean
}

/**
Expand Down

0 comments on commit f109ba7

Please sign in to comment.