Completed template
This commit is contained in:
1 parent
d811b87b12
commit
3e3d2881f5
103 files changed
+1410
-622
No files matched your search
@@ -17,9 +17,7 @@ vi.mock("next/dynamic", () => {
|
||||
function DynamicWrapper(props) {
|
||||
const [Component, setComponent] = React.useState(null);
|
||||
React.useEffect(() => {
|
||||
importFn().then((mod) =>
|
||||
setComponent(() => mod.default || mod),
|
||||
);
|
||||
importFn().then((mod) => setComponent(() => mod.default || mod));
|
||||
}, []);
|
||||
if (!Component) {
|
||||
return options?.loading ? options.loading() : null;
|
||||
|
||||
Reference in new issue
Block a user