Get dirty value from formikRef #3545
Unanswered
JoeVanGundy
asked this question in
Q&A
Replies: 1 comment
-
duplicate of #3310 answered by #3310 (reply in thread) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I need to be able to handle submitting and checking the
dirty
value from outside of the<Formik>
component (the submit button is in a modal footer).To do this, I use
const formikRef = useRef(null)
.and I pass that as
<Formik innerRef={formikRef} ...
I'm able to get the submit button to work, but I can't seem to get the correct
dirty
value.I saw this discussion, which mentioned this may be available in v3 of formik. I pulled down
^3.0.0-next.8
, but I don't seeuseFormikSubscription
anywhere.Is there any of doing this anywhere?
Also if that has just been renamed, is there a place for the documentation on v3?
Beta Was this translation helpful? Give feedback.
All reactions