Skip to content

Commit 197d802

Browse files
authored
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

Diff for: nativescript-angular/platform-common.ts

+1-1
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() instanceof AppHostView ? ((<any>getRootPage()) as AppHostView).ngAppRoot : getRootPage()),
306306
});
307307
},
308308
(error) => {

0 commit comments

Comments
 (0)