-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@storybook/vue not returning template
string for a custom decorator in SB 5.0
#6112
Comments
The vue handling was changed in the alpha-only 4.2 (and now official in SB5). Every return value of story functions or decorators are normalized with |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
@backbone87 Can we close this now? |
yeah i dont think we can do anything here. the BC breaks in @storybook/vue for v5 could be documented better, but then again the pre sb5 vue integration was fragile anyway |
@backbone87 Would you mind adding a few lines to |
see #6447 |
Describe the bug
@storybook/vue not returning
template
string for a custom decorator in SB 5.0To Reproduce
For Example:
For the above story, in SB4 i have a custom decorator
withStaticTemplate
in which i was accessing my story template(not rendered one).The same above custom decorator started failing in SB5.
When debugged i see in
@storybook/vue/src/client/preview/index.js
, template is being returned if the story is onlystring
type:Could someone please help me how can i get the story template in any custom decorator.
Expected behavior
Template should be returned all the time irrespective of story type
The text was updated successfully, but these errors were encountered: