useQuery + Server Actions = Refetch doesn't work. #65915
Replies: 1 comment
-
|
I am also running into this. Did you solve it? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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