Skip to content

Commit

Permalink
Use loadable as a component
Browse files Browse the repository at this point in the history
  • Loading branch information
CannonLock committed Sep 15, 2023
1 parent 163b1db commit 9863951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import loadable from "@loadable/component";
import { Spinner } from "@blueprintjs/core";

export function onDemand(func) {
const _Component = loadable(func);
const _Component = h(loadable, func);
return (props) => h(Suspense, { fallback: h(Spinner) }, h(_Component, props));
}

Expand Down

0 comments on commit 9863951

Please sign in to comment.