diff --git a/src/react/hooks.ts b/src/react/hooks.ts index a953e76..ee2575a 100644 --- a/src/react/hooks.ts +++ b/src/react/hooks.ts @@ -204,5 +204,5 @@ export function useActionEffect(id: string, effect: Function) { return () => { client.config.unregisterEffect(id); }; - }, [client, id]); + }, [client, id, effect]); }