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) {