Closed hugoattal closed 3 months ago
Following https://github.com/histoire-dev/histoire/commit/26dd6ed447baa7ce002a9cb6dc86e6a79fad30e0
Vue fire a warning when there are several child nodes in a story
[Vue warn]: <Suspense> slots expect a single root node. at <RenderStorySubApp>
Maybe this should be an opt-in feature? Like this: <Story suspense>...</Story>
<Story suspense>...</Story>
Or wrap the inside of Suspense into a div?
<template> <Story> <div>Hello</div> <div>World</div> </Story> </template>
Workaround:
<template> <Story> <div> <div>Hello</div> <div>World</div> </div> </Story> </template>
All
pnpm
@Akryum I can do the fix if you want.
Two solutions:
<Suspense><div><Story ... /></div></Suspense>
I'm in favor of the wrapper div
Describe the bug
Following https://github.com/histoire-dev/histoire/commit/26dd6ed447baa7ce002a9cb6dc86e6a79fad30e0
Vue fire a warning when there are several child nodes in a story
Maybe this should be an opt-in feature? Like this:
<Story suspense>...</Story>
Or wrap the inside of Suspense into a div?
Reproduction
Workaround:
System Info
Used Package Manager
pnpm
Validations