Skip to content

Commit

Permalink
fix: blank screen on hmr (#2317)
Browse files Browse the repository at this point in the history
  • Loading branch information
edusperoni committed Jan 22, 2021
1 parent 2dc8e06 commit 197d802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nativescript-angular/platform-common.ts
Expand Up @@ -302,7 +302,7 @@ export class NativeScriptPlatformRef extends PlatformRef {

lastBootstrappedModule = new WeakRef(moduleRef);
Application.resetRootView({
create: () => getRootPage(),
create: () => (getRootPage() instanceof AppHostView ? ((<any>getRootPage()) as AppHostView).ngAppRoot : getRootPage()),
});
},
(error) => {
Expand Down

0 comments on commit 197d802

Please sign in to comment.