From 9c94b0ca17270c91c8b10a3ae9ae7b15b48e13e9 Mon Sep 17 00:00:00 2001 From: Christoph Pader Date: Tue, 11 Jun 2024 17:16:21 +0200 Subject: [PATCH] remove unused check --- lib/useOnyx.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/useOnyx.ts b/lib/useOnyx.ts index 58169bc7..f54469ed 100644 --- a/lib/useOnyx.ts +++ b/lib/useOnyx.ts @@ -131,11 +131,6 @@ function useOnyx>(key: TKey newFetchStatus = 'loading'; } - // If `options.initWithStoredValues` is explicitly set to `false`, the fetch status should always be `loaded`. - if (options?.initWithStoredValues === false) { - newFetchStatus = 'loaded'; - } - // If data is not present in cache and `initialValue` is set during the first connection, // we set the new value to `initialValue` and fetch status to `loaded` since we already have some data to return to the consumer. if (isFirstConnectionRef.current && !hasCacheForKey && options?.initialValue !== null && options?.initialValue !== undefined) {