Skip to content

Conversation

@alan-agius4
Copy link
Contributor

@alan-agius4 alan-agius4 commented May 3, 2024

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are no longer needed as with v18 all versions of Node.js support fetch

@alan-agius4 alan-agius4 added area: common/http Issues related to HTTP and HTTP Client target: rc This PR is targeted for the next release-candidate labels May 3, 2024
@ngbot ngbot bot added this to the Backlog milestone May 3, 2024
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`.
@alan-agius4 alan-agius4 added the action: review The PR is still awaiting reviews from at least one requested reviewer label May 3, 2024
@alan-agius4 alan-agius4 marked this pull request as ready for review May 3, 2024 08:54
@pullapprove pullapprove bot requested a review from atscott May 3, 2024 08:54
@alan-agius4 alan-agius4 requested review from AndrewKushnir and removed request for atscott May 3, 2024 08:54
@AndrewKushnir AndrewKushnir removed the action: review The PR is still awaiting reviews from at least one requested reviewer label May 4, 2024
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label May 4, 2024
@AndrewKushnir
Copy link
Contributor

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

AndrewKushnir pushed a commit that referenced this pull request May 6, 2024
…ch` (#55652)

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`.

PR Close #55652
@alan-agius4 alan-agius4 deleted the http-fetch branch May 6, 2024 19:52
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: common/http Issues related to HTTP and HTTP Client target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants