Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit e0ed653

Browse files
committed
refactor(@nguniversal/common): remove usage of BrowserTransferStateModule
This is no longer needed
1 parent 8d728c4 commit e0ed653

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Diff for: docs/transfer-http.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ side.
77
When the module is installed in the application `NgModule`, it will intercept `HttpClient` requests
88
on the server and store the response in the `TransferState` key-value store. This is transferred to the client, which then uses it to respond to the same `HttpClient` requests on the client.
99

10-
Any requests other than GET will prevent any further requests. You may alternatively use `BrowserTransferStateModule` to write your own behaviour for caching information.
10+
Any requests other than GET will prevent any further requests.
1111

1212
### Usage
1313

Diff for: modules/common/clover/src/transfer-http-cache/transfer-http-cache.module.ts

-2
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@
88

99
import { HTTP_INTERCEPTORS } from '@angular/common/http';
1010
import { NgModule } from '@angular/core';
11-
import { BrowserTransferStateModule } from '@angular/platform-browser';
1211
import { TransferHttpCacheInterceptor } from './transfer-http-cache.interceptor';
1312

1413
/**
1514
* @deprecated This experimental API will be removed in version 16.
1615
* @experimental
1716
*/
1817
@NgModule({
19-
imports: [BrowserTransferStateModule],
2018
providers: [
2119
TransferHttpCacheInterceptor,
2220
{ provide: HTTP_INTERCEPTORS, useExisting: TransferHttpCacheInterceptor, multi: true },

0 commit comments

Comments
 (0)