Next.js Discord

Discord Forum

Error: revalidateTag

Unanswered
Dimax posted this in #help-forum
Open in Discord
I keep getting this error whenever I try to revalidate the path with:
const onSubmit = async (formData: FormData) => { try { const { error } = await supabase.from('clients').insert({ ...formData }); if (error) throw error; // Handle success, like closing the modal or displaying a success message. } catch (error) { console.error('Error adding client:', error); // Handle error, like displaying an error message to the user. } finally { setIsModalOpen(false) revalidatePath('/clients') } }

0 Replies