how do form actions revalidate data?
I never call revalidate but the boards get updated nonetheless, does form submission revalidate everything?
6 Replies
Actions will automatically invalidate all cache functions, so any that are being rendered will refetch automatically
got it, thanks
Just stumbled across this- is there a reason for this? feels a bit aggressvie to revalidate everything on each action
The idea is that actions represent the modification of data. Without any fine tuning the action can’t know what data has been modified, so everything is invalidated. Keep in mind that doesn’t mean that everything gets refetched, only the things that are being used on the page will get refetched immediately
ok true that makes sense
thank you
There’s also a PR extending the docs for actions about revalidation showing examples for any case.