You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note for myself for that second part: we need a way to save form values outside of the form, i.e. pass a callback that saves form values on click of the settings button or the "back" button, outside of formik context. But we can't save on every click (or remake the callback) every time the values change, because dispatch() is too slow to happen so much. I think the solution is to access the reference to values, and in Formik this is done through passing a prop called innerRef:
+const FormikAllSteps = ({ children, renderButtons, ...props }) => {
+ const formRef = useRef()
+ console.log('TODO make a callback that saves this value:', formRef.current?.values)
+ return (
+ <Formik
+ innerRef={formRef}
The text was updated successfully, but these errors were encountered:
Unfinished from #415. Nothing uses the steps, but the LocationForm code still tries to be generic.
Part of a bit of a plan:
Note for myself for that second part: we need a way to save form values outside of the form, i.e. pass a callback that saves form values on click of the settings button or the "back" button, outside of formik context. But we can't save on every click (or remake the callback) every time the values change, because dispatch() is too slow to happen so much. I think the solution is to access the reference to values, and in Formik this is done through passing a prop called innerRef:
The text was updated successfully, but these errors were encountered: