From d6994fe8a2482595ef7fb6c983c5ea1c18d2db21 Mon Sep 17 00:00:00 2001 From: irishcarbomb777 Date: Thu, 23 May 2024 12:58:14 -0400 Subject: [PATCH] fix: updater --- src/layers/ReactCache/defineReactCacheLayer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layers/ReactCache/defineReactCacheLayer.ts b/src/layers/ReactCache/defineReactCacheLayer.ts index ade108b..a72a6e6 100644 --- a/src/layers/ReactCache/defineReactCacheLayer.ts +++ b/src/layers/ReactCache/defineReactCacheLayer.ts @@ -86,7 +86,7 @@ export const defineReactCacheLayer = < await updater?.(nodeState) })() } - }, [nodeState]) + }, [nodeState, updater]) return [nodeState, updateNodeState] as any }, }