angular / angular

Deliver web apps with confidence 🚀
https://angular.dev
MIT License
94.71k stars 24.68k forks source link

fix(http): resolve `withRequestsMadeViaParent` behavior with `withFetch` #55652

Closed alan-agius4 closed 1 week ago

alan-agius4 commented 2 weeks ago

This commit addresses dependency injection defects when using the withFetch API. Formerly, utilizing withFetch led to the automatic setting of HttpBackend to FetchBackend, which proved problematic in certain scenarios. Notably, conflicts arose when integrating withRequestsMadeViaParent and manually overriding tokens, as observed in instances like InMemoryWebApiModule.

Reviewer note: I suggest that you enable hide whitespace.

AndrewKushnir commented 1 week ago

This PR was merged into the repository by commit 9ddb003b6cab080662bacaf93417bd599357700b.