react-imported-component
Version:
I will import your component, and help to handle it
16 lines (15 loc) • 473 B
TypeScript
/**
* injects a loadable tracker on a given global variable name.
*
* WARNING: mutates the origin variable!
*
* @param name = 'importedComponents`
* @example
* ```js
* window.importedMarks = window.importedMarks || [];
* importedMarks.push(hydratedMarks[0]);
* ///
* injectLoadableTracker();
*/
export declare const injectLoadableTracker: (name?: string) => void;
export declare const getLoadableTrackerCallback: (name?: string) => (marks: string[]) => string;