Skip to content

Commit

Permalink
fix: unable to create new personas when setPersonas is in useEffect d…
Browse files Browse the repository at this point in the history
…ependency array
  • Loading branch information
rmrt1n committed Oct 11, 2024
1 parent 18b2fe1 commit 2f350ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 2f350ce

Please sign in to comment.