-
Notifications
You must be signed in to change notification settings - Fork 27k
fix(compiler): add more specific matcher for hydrate never block #58360
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
Conversation
thePunderWoman
left a comment
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.
LGTM, never, and thank you 🥚
|
Caretaker note: the broken adev tests are broken at head and unrelated to this change. This is safe to merge. |
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.
On second look, it's entirely possible someone would put things after hydrate never, like a prefetch trigger or even a regular trigger, for example. So I don't think this will solve this issue.
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.
Additional test cases to consider (we've seen stuff like this before):
@defer(
on idle;
hydrate never
)
@defer(hydrate never; on idle;)
@defer(hydrate never ; on idle ;)
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.
Good catch. Updated the expression to allow only additional spaces and added some additional tests
thePunderWoman
left a comment
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.
Thanks for the additional tests!
|
@brandonroberts Can you rebase on main? That should fix the broken adev tests. |
Fixes an issue where additional characters were allowed afte the "hydrate never" block. Closes angular#58358
83cd115 to
8cff6f0
Compare
|
@thePunderWoman yep, done |
|
This PR was merged into the repository by commit 992410e. The changes were merged into the following branches: main, 19.0.x |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #58358
What is the new behavior?
No additional characters are allowed in the "hydrate never" block.
Does this PR introduce a breaking change?
Other information