Skip to content

Commit

Permalink
(feat) Synchronously load extensions and pages
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen committed Nov 14, 2023
1 parent 37d660d commit 5bc0fb2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { getAsyncLifecycle } from "@openmrs/esm-framework";
import { getSyncLifecycle } from "@openmrs/esm-framework";

import cohortBuilderComponent from "./cohort-builder";
import cohortBuilderAdminPageCardLinkComponent from "./cohort-builder-admin-link.component";

const moduleName = "@openmrs/esm-cohort-builder";

Expand All @@ -16,12 +19,9 @@ export const importTranslation = require.context(

export function startupApp() {}

export const cohortBuilder = getAsyncLifecycle(
() => import("./cohort-builder"),
options
);
export const cohortBuilder = getSyncLifecycle(cohortBuilderComponent, options);

export const cohortBuilderAdminPageCardLink = getAsyncLifecycle(
() => import("./cohort-builder-admin-link.component"),
export const cohortBuilderAdminPageCardLink = getSyncLifecycle(
cohortBuilderAdminPageCardLinkComponent,
options
);

0 comments on commit 5bc0fb2

Please sign in to comment.