UNPKG

@firecms/core

Version:

Awesome Firebase/Firestore-based headless open-source CMS

8 lines (7 loc) 401 B
import React from "react"; /** * Returns a React.lazy component that is also preloaded immediately using * requestIdleCallback or setTimeout. * This ensures that chunks are split, but fetched in the background before they are actually needed. */ export declare function lazyEager<T extends React.ComponentType<any>>(factory: () => Promise<any>, exportName?: string): React.LazyExoticComponent<T>;