Open swernerx opened 1 year ago
Hi @shilman actually the solution for this issue is that we have to mention docs -> source -> type -> code, because by default its taking type as dynamic and that is creating error of circular dependency which is leading to stack overflow. I want to know that in sandbox I am able to change type in preview.ts file but unable to find that in code -> react-vite. Can you please help me to know the file so I can raise the Pr. @swernerx just change the type to code in preview.ts and code will work.
Describe the bug
There seems to be a crash when using React hook form in interaction with Storybook's controls. As far as I've seen so far, it's somehow related to the interaction with the refs that RHF sets on the native input element.
The browser (Chrome and Safari) hangs relatively quickly or reports a maximum call stack error after a short time.
To Reproduce
https://stackblitz.com/edit/github-9tkagt?file=tsconfig.json,src%2Fstories%2FForm.stories.tsx&preset=node
Then click on one of the controls to change the
width
.System
Additional context
This was not an issue with Storybook v6 as far as we know.