What onDynamic really do? reading the docs, still don't understand when onDynamic called
3 Replies
deep-jade•2mo ago
revalidateLogic configures when it is called and how it changes after a submission attempt
the default is submit and change
so on first changes, it does not get called. After the first submission attempt that failed, it is called on change
eastern-cyan•2mo ago
it's a very useful UX config and is much better than only re-evaluating on submit in most forms. There are some forms where you only want to revalidate on submit. and forms where you must immediately validate on change. you get to pick which one suits you best
automatic-azureOP•2mo ago
just try it, i understand it now, thank you.