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 }, }