Skip to content

Commit 72dc89f

Browse files
committed
Fix lint
1 parent faa42ae commit 72dc89f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/useOnyx.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ function useOnyx<TKey extends OnyxKey, TReturnValue = OnyxValue<TKey>>(
330330
}
331331

332332
return resultRef.current;
333-
}, [options?.initWithStoredValues, options?.allowStaleData, options?.canBeMissing, key, memoizedSelector, cacheKey]);
333+
}, [options?.initWithStoredValues, options?.allowStaleData, options?.canBeMissing, key, memoizedSelector, cacheKey, previousKey]);
334334

335335
const subscribe = useCallback(
336336
(onStoreChange: () => void) => {

0 commit comments

Comments
 (0)