VulcanJS / Vulcan

🌋 A toolkit to quickly build apps with React, GraphQL & Meteor
http://vulcanjs.org
MIT License
7.98k stars 1.89k forks source link

Folder disappear in storybook #2409

Closed juliensl closed 4 years ago

juliensl commented 5 years ago

Hi !

In storybook, the folder with the inputs of forms does not appear at the first launch of storybook. I need to rebuild the webpack (I guess it is what happen) to see it :

bug_storybook

I think it is a synchronous problem, but I do not know how to fix it x)

Does anybody have an idea ? :)

eric-burel commented 4 years ago

Fixed the error is calling Components[name] outside of a React render function. At this point the Components object is not populated. But on reload it appears again because then Components is populated. I fixed this by rewriting the function a bit so it calls Components[name] later, when it's populated.

See https://github.com/VulcanJS/Vulcan/issues/2406