Skip to content

refactor(core): WIP - partial hydration prototype - #56311

Closed
thePunderWoman wants to merge 19 commits into
angular:mainfrom
thePunderWoman:partial-hydration-prototype
Closed

thePunderWoman wants to merge 19 commits into
angular:mainfrom
thePunderWoman:partial-hydration-prototype

Conversation

@thePunderWoman

Copy link
Copy Markdown
Contributor

No description provided.

@thePunderWoman
thePunderWoman force-pushed the partial-hydration-prototype branch 3 times, most recently from 5cd9091 to 7a8fb19 Compare June 13, 2024 18:28
@angular-robot angular-robot Bot added area: core Issues related to the framework runtime area: compiler Issues related to `ngc`, Angular's template compiler labels Jun 13, 2024
@ngbot ngbot Bot modified the milestone: Backlog Jun 13, 2024
@thePunderWoman
thePunderWoman force-pushed the partial-hydration-prototype branch from 7a8fb19 to ed9fa93 Compare June 13, 2024 19:47
@thePunderWoman
thePunderWoman force-pushed the partial-hydration-prototype branch 9 times, most recently from 4eaaad5 to d532715 Compare July 23, 2024 21:12
@thePunderWoman
thePunderWoman force-pushed the partial-hydration-prototype branch 10 times, most recently from 57c97e3 to 43320ca Compare July 30, 2024 20:46
@angular-robot angular-robot Bot added the detected: feature PR contains a feature commit label Jul 31, 2024
@thePunderWoman
thePunderWoman force-pushed the partial-hydration-prototype branch from 065d394 to 056f50c Compare August 2, 2024 21:09
@thePunderWoman
thePunderWoman force-pushed the partial-hydration-prototype branch 9 times, most recently from 4a39580 to 58b8d4d Compare August 21, 2024 22:34
This is a work in progress of the prototype of partial hydration using defer blocks
this adds support in the defer block ast to parse hydrate statements for partial hydration.
This adds the set of instructions to support usage of hydrate in defer blocks
The hydration test file is giant. This breaks it up into full app and partial files.
This separates out the full app hydration and partial hydration tests, adds a bunch, and adds ngh annotations for defer blocks.
this adds serialized defer block details for partial hydration
This should be able to look through and find all the nodes with ngh and the appropriate triggers for partial hydration.
This adds non-jsaction events and starts to get them working
This adds functionality for all the partial hydration triggers.
This adds a never hydrate trigger.
this ensures the injection of the partial hydration token is optional and defaults to false.
this adds hydrate cleanup to trigger cleanup invocation.
defer triggers would be called regardless of the hydrate trigger presence. This ensures they are not called when on initial load and have a hydrate flag.
Partial hydration cases are nuanced in when they need to be cleaned up. This adds the right conditions to avoid over and under cleaning up of nodes.
Hydrate viewport will always be adjacent to a defer trigger. So hydrate triggers should never cause a missing placeholder error to occur.
In some cases, hydrate triggers were being used as a default due to a problem in the ingest parsing. This ensures idle is added as default in the right cases.
event replay was firing too early in some cases due to an early return of a null.
cleanup was causing overzealous removal of content because the app was not yet stable.
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area: compiler Issues related to `ngc`, Angular's template compiler area: core Issues related to the framework runtime detected: feature PR contains a feature commit state: WIP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant