type error after using useFormContext hook #11582
Unanswered
benevolentsocialplanner
asked this question in
General
Replies: 1 comment 2 replies
-
i think it's because setValue is reserved by javascript. haven't found the solution yet |
Beta Was this translation helpful? Give feedback.
2 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.
-
const {setValue} = useFormContext();
everytime this line of code triggered i get an error
setValue(field, val, {shouldDirty: true});
Uncaught ReferenceError: setValue is not defined
at handleChange (resourceSelectField.tsx:68:5)
Beta Was this translation helpful? Give feedback.
All reactions