Next.js Discord

Discord Forum

Suspense w/ revalidatePath

Unanswered
Siamese Crocodile posted this in #help-forum
Open in Discord
Siamese CrocodileOP
My pattern here is get some data from the server side, modify on the client side, and then save. When the server action performs the save I call revalidatePath to notify the server side to repull the data. However when i tie in suspense and startTransition, it seems not to show a loading indicator with the server action being called within it. Am i implementing a anti-pattern or tackling this incorrectly? Does anyone have examples of best pratice implementation of this.

0 Replies