Closed ddcech closed 1 year ago
Hey @ddcech thanks for reporting! Can you provide a reproduction? It sounds, to me, that somehow a promise is passed and rendered in your component, though a loader does not do that, unless your story has something with loaded
. Can you figure out which story is causing that, and share the source here (or make a small reproduction)? thanks!
I'll try to make a reproduction on codesandbox or new github repo. Please notice I'm using storybook v7 beta not 6 as you have used in your docs. This could be where the issue is originating from. I'm also using CSF 3.0 to render a basic component.
Issue was on my side. I did not change the exported variable name to loaders
, and kept decorators
.
export const decorators = [mswDecorator]
should now be
export const loaders = [mswLoader]
@yannbf BTW the release note for 1.7.0 has a typo. you have export const loaders
twice.
Thanks a lot @ddcech ! I updated so other people won't have issues with it.
I'm getting an error after upgrading to 1.7.0 and replacing the mswDecorator with mswLoader. Any help would be appreciated. If there is any more info needed to debug, let me know. Thanks.
storybook 7.0.0-beta.31 msw-storybook-addon 1.7.0 msw 0.49.3 react 18.2.0