From 77b696ca2a753c4c7df4307ce8e62210866c0a29 Mon Sep 17 00:00:00 2001 From: Usama Idriss Kakumba Date: Wed, 6 Nov 2024 15:28:49 +0300 Subject: [PATCH] use getAsyncLifecycl --- src/index.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 35e1b04..8914e9b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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'; @@ -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, +);