Replies: 1 comment 1 reply
-
If you create a CodeSandbox trying to reproduce the issue, I can take a look. Generally, you'd have a variant of a field which is not connected to Formik and then a variant which just wraps that raw field in another field which calls |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Lets assume I have a form file-drop field. I drop a file. But as my project is complex I have defined my onDrop method in another file. Now once the file is dropped I need to set one form fields to be this file. How do I go about structuring it? I tried useFormikContext hook. But it errored out with
React Hook "useFormikContext" cannot be called at the top level. React Hooks must be called in a React function component or a custom React Hook function react-hooks/rules-of-hooks
Any ideas??
Beta Was this translation helpful? Give feedback.
All reactions