If you have an action attached to a form, and you call invalidate and await that, the rest of the action never runs.
const myAction = action(async ()=>{
/// do something
await queryClient.invalidateQueries();
console.log("foo");
return redirect('/home');
}
"foo" never logs and things just get stuck where they are. If I don't await it works, but I think that is just luck of timing.
What is the real deal here?