fix(compiler): add more specific matcher for hydrate never block#58360
fix(compiler): add more specific matcher for hydrate never block#58360brandonroberts wants to merge 3 commits intoangular:mainfrom
Conversation
thePunderWoman
left a comment
There was a problem hiding this comment.
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.
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.
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.
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.
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