From de4a0946d172a9ed6339238e52ae110c65c00233 Mon Sep 17 00:00:00 2001 From: mathis <37186532+maaaathis@users.noreply.github.com> Date: Tue, 19 Nov 2024 13:51:55 +0100 Subject: [PATCH] depend default refreshOnVisibilityChange from refreshOnWindowFocus Co-authored-by: Marco Falkenberg --- src/resource/useWatchResourceValue.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resource/useWatchResourceValue.ts b/src/resource/useWatchResourceValue.ts index 1d7b1dc..670b203 100644 --- a/src/resource/useWatchResourceValue.ts +++ b/src/resource/useWatchResourceValue.ts @@ -19,7 +19,7 @@ export const useWatchResourceValue = < keepValueWhileLoading = true, useSuspense = true, refreshOnWindowFocus = false, - refreshOnVisibilityChange = false, + refreshOnVisibilityChange = refreshOnWindowFocus, autoRefresh, } = options;