File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 66 * found in the LICENSE file at https://angular.dev/license
77 */
88
9- import { APP_ID , PLATFORM_ID } from './application/application_tokens' ;
9+ import { APP_ID } from './application/application_tokens' ;
1010import { inject } from './di/injector_compatibility' ;
1111import { ɵɵdefineInjectable } from './di/interface/defs' ;
1212import { getDocument } from './render3/interfaces/document' ;
@@ -50,7 +50,7 @@ export function makeStateKey<T = void>(key: string): StateKey<T> {
5050
5151function initTransferState ( ) : TransferState {
5252 const transferState = new TransferState ( ) ;
53- if ( inject ( PLATFORM_ID ) === 'browser' ) {
53+ if ( typeof ngServerMode === 'undefined' || ! ngServerMode ) {
5454 transferState . store = retrieveTransferredState ( getDocument ( ) , inject ( APP_ID ) ) ;
5555 }
5656
You can’t perform that action at this time.
0 commit comments