SolidJSS
SolidJS10mo ago
13 replies
mtt-4242

Prevent queries revalidation if error in action

Hi.

I'm a little lost with the revalidate function.

Is it a server or client function ?
I would like to prevent all queries revalidation if I have an error in my action.

const myaction = action(async (formdata) => {
  "use server";
  try {
    
  } catch (error) {
    // Prevent single flight revalidation here ?
    return new Error("oups")
  }
})
Was this page helpful?