fix(http): allow to combine FetchBackend and InMemory services in the providers #52425
Closed
JeanMeche wants to merge 1 commit intoangular:mainfrom
Closed
fix(http): allow to combine FetchBackend and InMemory services in the providers #52425JeanMeche wants to merge 1 commit intoangular:mainfrom
JeanMeche wants to merge 1 commit intoangular:mainfrom
Conversation
1c20160 to
de13627
Compare
de13627 to
740f196
Compare
alan-agius4
reviewed
Oct 27, 2023
packages/misc/angular-in-memory-web-api/src/http-client-in-memory-web-api-module.ts
Outdated
Show resolved
Hide resolved
Contributor
|
Caretaker -- the aio failure looks spurious to me |
Member
|
This PR was merged into the repository by commit 49b037f. |
1b8334d to
6de5db5
Compare
Member
Author
|
The initial merge was reverted in #52425 because of test regressions. Those are now fixed. |
6de5db5 to
cacae2e
Compare
When using `withFetch`, the `PRIMARY_HTTP_BACKEND` token is set. The InMemory Backend services will also set that token. This means that providers order will matter and the latest on the list will be the one instantiated
cacae2e to
6e85cc6
Compare
AndrewKushnir
approved these changes
Nov 6, 2023
AndrewKushnir
approved these changes
Nov 6, 2023
alxhub
added a commit
to alxhub/angular
that referenced
this pull request
Nov 8, 2023
…WebAPI (angular#52425)" This reverts commit 49b037f. Reason: it breaks tests in aio-local.
pkozlowski-opensource
pushed a commit
that referenced
this pull request
Nov 8, 2023
Contributor
|
This PR was merged into the repository by commit 291ba38. |
|
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. |
ChellappanRajan
pushed a commit
to ChellappanRajan/angular
that referenced
this pull request
Jan 23, 2024
…ngular#52425) When using `withFetch`, the `PRIMARY_HTTP_BACKEND` token is set. The InMemory Backend services will also set that token. This means that providers order will matter and the latest on the list will be the one instantiated PR Close angular#52425
ChellappanRajan
pushed a commit
to ChellappanRajan/angular
that referenced
this pull request
Jan 23, 2024
…ngular#52425) When using `withFetch`, the `PRIMARY_HTTP_BACKEND` token is set. The InMemory Backend services will also set that token. This means that providers order will matter and the latest on the list will be the one instantiated PR Close angular#52425
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When using
withFetch, thePRIMARY_HTTP_BACKENDtoken is set.The InMemory Backend services will also set that token.
This means that providers order will matter and the latest on the list will be the one instantiated.
cc @alan-agius4, this is related to your comment on #52398