Loading...
save

Why does my Next.js server action revalidate the entire route cache?

clock icon

asked 2 days ago

message icon

0

eye icon

5

I have a form that calls a server action to update a single row, and revalidatePath("/") is blowing away cached data for unrelated segments. Is there a way to scope the invalidation to just the affected page, or should I be using revalidateTag instead?

0 Answers

Empty state illustration

No Answers Found

The answer board is empty. Make it rain with your brilliant answer.

Write your answer here

Top Questions