Next.js Discord

Discord Forum

How can I trigger a revalidation with @vercel/kv?

Unanswered
Appenzeller Sennenhund posted this in #help-forum
Open in Discord
Appenzeller SennenhundOP
If I was doing a fetch, the pattern to revalidate is well documented. How can I do this with @vercel/kv? I am fetching a bunch of records in a server component. I then have a (server-actions-powered) delete function in the individual records' client components. How could I trigger a re-pull of the parent component's kv.smembers and kv.get calls from the server action? Thank you!

0 Replies