@zydon/common 2.2.73 → 2.2.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/utils/loadable.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ElementType } from 'react';
|
|
3
3
|
|
|
4
|
-
declare const loadable: (
|
|
4
|
+
declare const loadable: (LazyComponent: ElementType) => (props: Record<string, unknown>) => react_jsx_runtime.JSX.Element;
|
|
5
5
|
|
|
6
6
|
export { loadable as default };
|
package/dist/utils/loadable.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a
|
|
2
|
-
import { Suspense } from 'react';
|
|
1
|
+
import { a } from '../chunk-FK7DDO5L.js';
|
|
2
|
+
import { Suspense, useEffect, Component } from 'react';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var t=class extends Component{constructor(r){super(r),this.state={hasError:!1};}static getDerivedStateFromError(r){return {hasError:!0}}componentDidCatch(r,e){console.error("Error caught in error boundary:",r,e);}render(){return this.state.hasError?this.props.fallback||jsx("h1",{children:"Something went wrong."}):this.props.children}},s=t;var i=()=>(useEffect(()=>{window.location.reload();},[]),null),p=a$1=>function(e){return jsx(s,{fallback:jsx(i,{}),children:jsx(Suspense,{fallback:jsx(a,{}),children:jsx(a$1,{...e})})})},R=p;
|
|
6
6
|
|
|
7
|
-
export {
|
|
7
|
+
export { R as default };
|