loading.tsx with revalidatePath
Unanswered
Houss posted this in #help-forum
HoussOP
i have a form in my page with a useFormState for the server action and a useToastMessage hook, and in the folder of this page i have a loading.tsx to handle when loading that page, however when i submit the form and the server action does a revalidatePath, i get the loading.tsx which stops the useToastMessage to show the toast, how can i disable the loading.tsx to activate when revalidating a path?
1 Reply
Selkirk Rex
I didn't know that
loading.tsx
is activated during the call of revalidatePath
. It's so interesting!