Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 197d802

Browse files
fix: blank screen on hmr (#2317)
1 parent 2dc8e06 commit 197d802

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎nativescript-angular/platform-common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ export class NativeScriptPlatformRef extends PlatformRef {
302302

303303
lastBootstrappedModule = new WeakRef(moduleRef);
304304
Application.resetRootView({
305-
create: () => getRootPage(),
305+
create: () => (getRootPage()instanceofAppHostView ? ((<any>getRootPage())asAppHostView).ngAppRoot : getRootPage()),
306306
});
307307
},
308308
(error) => {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /