-
For example I want to check a cookie value, if missing then Sample code for a GET call
How would this code snippet transform for a POST call? -=Dan=- |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
useMutation returns a mutate function. The mutation will only run when you call that function, e.g. on a button click. That is fundamentally different from useQuery. If you want to wait for a condition to be met, just call the function after that :) |
Beta Was this translation helpful? Give feedback.
useMutation returns a mutate function. The mutation will only run when you call that function, e.g. on a button click. That is fundamentally different from useQuery. If you want to wait for a condition to be met, just call the function after that :)