Skip to content

Commit

Permalink
use getAsyncLifecycl
Browse files Browse the repository at this point in the history
  • Loading branch information
usamaidrsk committed Nov 8, 2024
1 parent 1f6e6fb commit aa49e2b
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 aa49e2b

Please sign in to comment.