You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I need some help related to Server Actions. I'm using a Server Action with the react-query hook useQuery, and it only works the first time. After that, it completely stops working because refetching doesn't work. When I execute refetch, the server action runs, but the query stops functioning entirely. It never goes back to isLoading or updates with new data. It's really strange, and I have an example where this can be reproduced.
Does anyone have any ideas, suggestions, or anything?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I need some help related to Server Actions. I'm using a Server Action with the react-query hook useQuery, and it only works the first time. After that, it completely stops working because refetching doesn't work. When I execute refetch, the server action runs, but the query stops functioning entirely. It never goes back to isLoading or updates with new data. It's really strange, and I have an example where this can be reproduced.
Does anyone have any ideas, suggestions, or anything?
https://github.com/mailok/query-server-actions
Beta Was this translation helpful? Give feedback.
All reactions