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

Feat: Include Glimmer component arguments as being tracked #182

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

IgnaceMaes
Copy link

Glimmer component arguments are auto tracked by default. So when in a Glimmer component, we can safely ignore these if they're part of the computed property watchlist.

This is only true for the reference of the argument itself, and not nested properties. For this a check has been added as well.

@IgnaceMaes
Copy link
Author

FYI @suchitadoshi1987 @tylerturdenpants

As this might get lost in between Dependabot PRs as this repo hasn't been updated in a bit 😄

@tylerturdenpants
Copy link
Collaborator

@IgnaceMaes I will try and take a close look today. So far the PR looks ok, but I want to be sure.

@IgnaceMaes
Copy link
Author

This should probably be updated to use @dependentKeyCompat for full compatibility in case there are CPs watching these getters.

Although I suspect this might be required for the other functionality of the codemod as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants