Skip to content
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

Angular: Use ɵReflectionCapabilities to find component & module metadata #17156

Merged
merged 5 commits into from Jan 7, 2022

Conversation

ThibaudAV
Copy link
Contributor

@ThibaudAV ThibaudAV commented Jan 6, 2022

Issue: #11613 #14828

Surly several with angular 13 or 12 where the recovery of input / output was important. for exemple
And when the ngOnChanges didn't work.

Link to my comment here : #11613 (comment)

link here too : #14828 (comment)

What I did

As Reflect is no longer used by Angular, it is no longer necessary for storybook to rely on it.
I change storybook to use the ɵReflectionCapabilities function of Angular which will allow to have the same behavior as an Angular application to find component Metadata

How to test

  • Is this testable with Jest or Chromatic screenshots?
  • Does this need a new example in the kitchen sink apps?
  • Does this need an update to the documentation?

@nx-cloud
Copy link

nx-cloud bot commented Jan 6, 2022

☁️ Nx Cloud Report

CI ran the following commands for commit 7d8f3ee. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@ThibaudAV ThibaudAV marked this pull request as ready for review January 6, 2022 22:22
@ThibaudAV ThibaudAV requested a review from a team January 6, 2022 22:22
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ThibaudAV -- it looks like this change breaks a few of the snapshot tests in CI. Can you please take a look?

@ThibaudAV
Copy link
Contributor Author

@shilman done, Very good test 💌 I hadn't thought about this case

@shilman shilman changed the title feat(angular): use ɵReflectionCapabilities to find component & module metadata Angular: Use ɵReflectionCapabilities to find component & module metadata Jan 7, 2022
@shilman shilman merged commit 84ec2f0 into next Jan 7, 2022
@shilman shilman deleted the angular/fix-angular-13.1 branch January 7, 2022 13:43
@shilman shilman added patch:yes Bugfix & documentation PR that need to be picked to main branch patch:done Patch/release PRs already cherry-picked to main/release branch labels Jan 29, 2022
shilman added a commit that referenced this pull request Jan 29, 2022
Angular: Use ɵReflectionCapabilities to find component & module metadata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
angular bug patch:done Patch/release PRs already cherry-picked to main/release branch patch:yes Bugfix & documentation PR that need to be picked to main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants