Running storybook with venia-ui Field and TextInput, I get a formApi.getValue error #4267
Unanswered
MichaelHeinzman
asked this question in
Q&A
Replies: 1 comment 1 reply
-
We don't use Storybook, but Informed docs aren't the clearest about explaining nested components vs single-component forms as it relates to the API usage. It's a bit annoying that you can't just import the hooks and it depends on how the components are written. This may help: teslamotors/informed#261 |
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
-
I'm utilizing a Form from the react package Informed. I'm then importing Field and TextInput into the react application. Everything works when I wrap the Field and TextInput in the Form. However, when running storybook, I get the error formApi.getValue is not a function. I'm not sure if there's any documentation on how to handle this with the venia-ui package. It seems like the context from the Form isn't working when running storybook.
If anyone has any solutions it would be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions