How does the table get updated? #794
-
Please help. I am so confused. When I click delete, how does the table get updated without redirect or refresh? Is the I have built a simple table, when I deleted the row in the database, I need to refresh the page to get the table updated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
yeah its revalidateTag. the tasks query is cached with a key, just revalidating it on each mutation. most likely you tagged the key wrong or something. did you try |
Beta Was this translation helpful? Give feedback.
yeah its revalidateTag.
the tasks query is cached with a key, just revalidating it on each mutation.
most likely you tagged the key wrong or something.
did you try
revalidatePath
? that should also work afaik.