Execute an effect inside useQuery "select" method. #4944
-
Hi there! I know the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi 👋 I wouldn't update Zustand state in a |
Beta Was this translation helpful? Give feedback.
Hi 👋
I wouldn't update Zustand state in a
select
function, personally. If you need to synchronise query state with another store then there are more appropriate APIs to use in my opinion; it's hard to advise without knowing what problem you're trying to solve. What is it that you're trying to achieve?