NextJS On-Demand Revalidation

default discord avatar
hzk1337
8 months ago
2

First up, sorry if it was asked often already, I couldnt find a definitive answer.


Am I correct in the assumption that to use the NextJS On-Demand Revaldiation (

https://beta.nextjs.org/docs/data-fetching/revalidating

) the best approach would be to use the afterChange, onDelete,... etc. (or does afterChange include deletions as well) hooks from Payload in the respective collections?


Thanks in advance! 🙂

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.