You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the v3 of the addon, withRoundTrip is registered as a story decorator and uses React hooks internally. This is broken when using @storybook/html (and probably also all apps other than @storybook/react) because React hooks cannot be called outside a component rendering, and the storybook story function is not invoked in such a context.
The decorator should probably use addons.getChannel() and the parameters available in the story context passed to the decorator instead.
The text was updated successfully, but these errors were encountered:
In the v3 of the addon,
withRoundTrip
is registered as a story decorator and uses React hooks internally. This is broken when using@storybook/html
(and probably also all apps other than@storybook/react
) because React hooks cannot be called outside a component rendering, and the storybook story function is not invoked in such a context.The decorator should probably use
addons.getChannel()
and the parameters available in the story context passed to the decorator instead.The text was updated successfully, but these errors were encountered: