v3.9 & Greater - `onValueChange` no longer fired on `formApi.reset()`
Hey there - previous to v3.9: formApi.reset would fire off the onValueChange event.
We have a relatively expensive operation that relies on a complex form value being filtered, and we were using onValueChange to get around having to run those filters for onChange which is quite noisy.
Is this something that can be reverted?
Reproducible case:
https://codesandbox.io/s/goofy-volhard-g5qpz?file=/src/App.js
This is also an issue in 3.10.
Ok thanks for the reproduction. I will need to look into this.
@joepuzzo - is this one of those things that's a major issue to fix? We actually need some of the fixes in later versions at this point, but we're still blocked on this.
If it's a major issue we'll figure something out, but just checking in on it.
Just double checked on 3.30: https://codesandbox.io/s/elegant-sun-hsjzj
We'll find another path forward for this I believe, but let me know if you find it!
I dont think im going to fix this as I dont want this firing n times where n is equal to the number of fields that get reset. Too many calls
It's no problem, thanks for checking in.