From a41bd1bdbeef84d06bb49a1b62f2d1ec8c49b4c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Miko=C5=82ajczak?= Date: Mon, 30 Sep 2024 13:28:11 +0200 Subject: [PATCH] cleanup part 2 --- lib/useOnyx.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);