Skip to content

Commit

Permalink
CovidTrackerFr#276 initializing RemoteConfig prior to installing rout…
Browse files Browse the repository at this point in the history
…es as we need RemoteConfig singleton to be initialized (even if not completely filled) prior to calling Router.installRoutes()

as, for certain routes (search by departments), title requires some RemoteConfig's promise to be issued
  • Loading branch information
fcamblor committed Dec 24, 2021
1 parent 710fea7 commit 0cb604f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vmd-app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ export class VmdAppComponent extends LitElement {

smoothscroll.polyfill();

RemoteConfig.INSTANCE.sync();

Router.installRoutes((viewTemplateResult) => {
this.viewTemplateResult = viewTemplateResult;
})

RemoteConfig.INSTANCE.sync();

ServiceWorkers.INSTANCE.startup();
}

Expand Down

0 comments on commit 0cb604f

Please sign in to comment.