From f109ba79fd57a9c1c68f2a1130a4ba59929455ed Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Sat, 23 Dec 2023 17:42:47 +0100 Subject: [PATCH] chore: notes --- src/use-query.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/use-query.ts b/src/use-query.ts index 8089f7b..43d3c17 100644 --- a/src/use-query.ts +++ b/src/use-query.ts @@ -19,6 +19,8 @@ export interface UseQueryReturn Pick, 'refresh' | 'refetch'> {} export type UseQueryKey = string | symbol +// TODO: +// | Array export interface UseQueryOptions { key: UseQueryKey | (() => UseQueryKey) @@ -35,8 +37,9 @@ export interface UseQueryOptions { 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 } /**