react-js-plugins 2.0.4 → 2.0.6
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.
|
@@ -66,7 +66,7 @@ var LoadingScreen = function () {
|
|
|
66
66
|
};
|
|
67
67
|
export var LazyLoader = function (importFunc) {
|
|
68
68
|
if (!chunk()) {
|
|
69
|
-
return function () { return _jsx("div", { className: "p-4 text-red-500", children: "Error:
|
|
69
|
+
return function () { return (_jsx("div", { className: "p-4 text-red-500", children: "Error: Too many re-renders. React limits the number of renders to prevent an infinite loop." })); };
|
|
70
70
|
}
|
|
71
71
|
var Component = lazy(importFunc);
|
|
72
72
|
return function (props) { return (_jsx(Error, { children: _jsx(Suspense, { fallback: _jsx(LoadingScreen, {}), children: _jsx(Component, __assign({}, props)) }) })); };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-js-plugins",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"description": "A powerful and efficient React utility library designed to enhance application performance by streamlining and simplifying the management of complex asynchronous operations.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|