From 2f350ce43d3461866f76162ff140c07a5a93e9e6 Mon Sep 17 00:00:00 2001 From: Ryan Martin Date: Fri, 11 Oct 2024 16:05:53 +0700 Subject: [PATCH] fix: unable to create new personas when setPersonas is in useEffect dependency array --- src/routes/__root.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/__root.tsx b/src/routes/__root.tsx index 21859b9..ddb13db 100644 --- a/src/routes/__root.tsx +++ b/src/routes/__root.tsx @@ -98,7 +98,7 @@ function Root() { } } if (isCardinalConnected) sync().catch((e) => console.log(e)) - }, [isCardinalConnected, cardinalUrl, toast, queryClient, setPersonas]) + }, [isCardinalConnected, cardinalUrl, toast, queryClient]) // setup websocket connection to receive events useEffect(() => {