Currently I have setup tabs on my form, and currently the state only saves to the page context when submit is pressed on each tab, however I would like it to save the values between changing tabs without having to use submit or shouldUnregister: false as its deprecated.
I figured I could persist the state on click of the tab (pretty much just run submit form outside of the form), but I don't like this method as I lose metadata like isDirty.
I can do something similar as above, and use getValues(), as well as the metadata and save that, and on tab change rebuild the state manually as well, but that just seems round about for whatever reason, I figure there maybe another way to accomplish this single form nature, or like a background save on change to the page state.
I am trying to make a form with React-Hook-Form and React-Query that autosaves whenever the user changes any of the fields (debounced). I am getting close, but it creates an infinite loop when I mu...