RevalidatePath AND return value from server action
Unanswered
Florian posted this in #help-forum
FlorianOP
Can I not call
But I need a confirmation message and I also need to update the data shown in the navbar.
revalidatePath AND return a value from the same server action? If I revalidate the path, useFormState doesn't show the message.But I need a confirmation message and I also need to update the data shown in the navbar.
1 Reply
FlorianOP
For some reason, this only does not work after the first page refresh. From the 2nd call on, it suddenly shows the message.