New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(http): allow to combine FetchBackend and InMemory services in the providers #52425
Conversation
1c20160
to
de13627
Compare
de13627
to
740f196
Compare
packages/misc/angular-in-memory-web-api/src/http-client-in-memory-web-api-module.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Caretaker -- the aio failure looks spurious to me |
This PR was merged into the repository by commit 49b037f. |
1b8334d
to
6de5db5
Compare
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
…WebAPI (angular#52425)" This reverts commit 49b037f. Reason: it breaks tests in aio-local.
This PR was merged into the repository by commit 291ba38. |
…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
…WebAPI (angular#52425)" This reverts commit 49b037f. Reason: it breaks tests in aio-local.
…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 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. |
…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
…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
When using
withFetch
, thePRIMARY_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.
cc @alan-agius4, this is related to your comment on #52398