import { lazy } from "https://deno.land/x/udibo_react_app@0.17.0/mod.tsx";
A function used to lazily load a component. This function takes in a factory that returns Promise that resolves to a React component.
The purpose of this function is to automatically add error boundaries to routes with an ErrorFallback
or boundary
export.
This function is intended for internal use only, and is typically used in the generated _main.tsx
file for a routes directory.
Type Parameters
T extends RouteFile
Parameters
factory: () => Promise<T>
Type Parameters
T extends RouteFile
Parameters
factory: () => Promise<T>