From d493f36749a90dc02a5406a95cc1ef327b5d9304 Mon Sep 17 00:00:00 2001 From: bc-marco <109162781+bc-marco@users.noreply.github.com> Date: Tue, 7 Mar 2023 12:45:08 -0600 Subject: [PATCH] feat: implement lazy loading in app (#152) * feat: implement lazy loading in app * fix: remove unnecesary x at the end * fix: move polyfill functions outside validation * fix: cancel request inmediatly an event ocurrs * fix: simplify lazy loading approach * fix: define function type --- apps/storefront/index.html | 2 +- apps/storefront/src/index.d.ts | 1 + apps/storefront/src/load-functions.ts | 56 +++++++++++++++++++ apps/storefront/src/main.ts | 19 +++++++ .../src/{main.tsx => react-setup.tsx} | 0 packages/hooks/useB3AppOpen.ts | 1 + 6 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 apps/storefront/src/load-functions.ts create mode 100644 apps/storefront/src/main.ts rename apps/storefront/src/{main.tsx => react-setup.tsx} (100%) diff --git a/apps/storefront/index.html b/apps/storefront/index.html index b1c8af70..a151fbfb 100644 --- a/apps/storefront/index.html +++ b/apps/storefront/index.html @@ -628,6 +628,6 @@