diff --git a/lib/useOnyx.ts b/lib/useOnyx.ts index e70b40cf..cff4958b 100644 --- a/lib/useOnyx.ts +++ b/lib/useOnyx.ts @@ -109,7 +109,7 @@ function useOnyx>(key: TKey // Stores the previous cached value as it's necessary to compare with the new value in `getSnapshot()`. // We initialize it to `null` to simulate that we don't have any value from cache yet. - const previousValueRef = useRef | undefined | null>(null); + const previousValueRef = useRef | undefined | null>(null); // Stores the newest cached value in order to compare with the previous one and optimize `getSnapshot()` execution. const newValueRef = useRef | undefined | null>(null);