Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
use getAsyncLifecycl
Browse files Browse the repository at this point in the history
  • Loading branch information
usamaidrsk committed Nov 6, 2024
1 parent bc90be1 commit 77b696c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { defineConfigSchema, getSyncLifecycle } from '@openmrs/esm-framework';
import { defineConfigSchema, getAsyncLifecycle } from '@openmrs/esm-framework';
import { configSchema } from './config-schema';
import patientBillingStatusSummary from './components/billing-status-summary.component';

const moduleName = '@openmrs/esm-patient-billing-status-app';

Expand All @@ -15,4 +14,7 @@ export function startupApp() {
defineConfigSchema(moduleName, configSchema);
}

export const patientBillingStatusOverview = getSyncLifecycle(patientBillingStatusSummary, options);
export const patientBillingStatusOverview = getAsyncLifecycle(
() => import('../src/components/billing-status-summary.component'),
options,
);

0 comments on commit 77b696c

Please sign in to comment.