Skip to content

fix(core): adds transfer cache to httpResource to fix hydration#67307

Open
thePunderWoman wants to merge 1 commit intoangular:mainfrom
thePunderWoman:httpResource-transferstate
Open

fix(core): adds transfer cache to httpResource to fix hydration#67307
thePunderWoman wants to merge 1 commit intoangular:mainfrom
thePunderWoman:httpResource-transferstate

Conversation

@thePunderWoman
Copy link
Contributor

@thePunderWoman thePunderWoman commented Feb 25, 2026

This should prevent the microtask problem with hydration and httpResource.

fixes: #62897

@angular-robot angular-robot bot added the area: core Issues related to the framework runtime label Feb 25, 2026
@ngbot ngbot bot added this to the Backlog milestone Feb 25, 2026
@thePunderWoman thePunderWoman force-pushed the httpResource-transferstate branch 3 times, most recently from 47d2b18 to 21745a0 Compare February 25, 2026 23:03
@thePunderWoman thePunderWoman added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Feb 25, 2026
@thePunderWoman thePunderWoman force-pushed the httpResource-transferstate branch from 21745a0 to 1bafe11 Compare February 26, 2026 00:20
@thePunderWoman thePunderWoman force-pushed the httpResource-transferstate branch 2 times, most recently from 8ce8584 to 6a0a0f1 Compare February 26, 2026 19:19
This should prevent the microtask problem with hydration and httpResource.

fixes: angular#62897
@thePunderWoman thePunderWoman force-pushed the httpResource-transferstate branch from 6a0a0f1 to 73f43a5 Compare February 26, 2026 19:40
Copy link
Member

@alxhub alxhub left a comment

Choose a reason for hiding this comment

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

👍 LGTM

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

Labels

action: review The PR is still awaiting reviews from at least one requested reviewer area: core Issues related to the framework runtime target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resource hasValue() is false for a moment when using TransferState cached data, causing hydration to fail

4 participants