-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Addon-docs/Angular: Fix inline story rendering #16149
Conversation
Nx Cloud ReportCI ran the following commands for commit 868768f. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch
Sent with 💌 from NxCloud. |
@tmeasday i'll try adding an inline rendering test now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The decorateStory
function is still called ? because it should have converted the component to a template
aaa or the component is not added in the metadata. Action done here
...(requiresComponentDeclaration ? [component] : []), |
This explains the absence of errors in the console
If my assumption is correct, we could have to move this code to decorateStory
.
getStorybookModuleMetadata
would no longer be involved in declaring the component or thecomputesTemplateFromComponent
decorateStory
->prepareMain
converted the component to a template. And if this action is performed, the component is added to the metadata if it is not already declared
🤔 WDYT ?
otherwise it's good for me.
I'll admit I am not quite following @ThibaudAV. What are we doing differently in rendering Angular stories inline in 6.4 compared to 6.3? The intention was not to change it. |
the component is no longer in To summarise, Angular needs the component to be declared. I think that the automatic declaration of the component by storybook comes too late in the process and should be done in |
seems to have another problem I'm looking at a solution |
@tmeasday I just walked through @ThibaudAV 's change with him. I'm fuzzy on the details, but the problem according to him is that |
Exactly, I also wonder if it is normal that when we change some controls in the docs that it does not refresh the component with their new value ? |
@shilman let's look at this together today, we certainly shouldn't be doing that.
This is new behaviour in 6.4? Do you mean something specific by "refresh"? Or do you just mean re-render? In any case no change in behaviour was intended. |
Yes re-render. or more tech I just tested with the tag v6.3.8 and it works |
Merging this with a followup in #16223 for the CLI failure. |
Issue: #16147
What I did
parameters
)component
required, which it is (I believe), and meant that TS would have picked this up.How to test
No, and I wonder if we can get a better test for this -- can we include an example with inline rendering somehow?