lilact 0.31.2 → 0.31.3
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/lilact.development.js +4 -5
- package/dist/lilact.development.js.map +2 -2
- package/dist/lilact.development.min.js +8 -8
- package/dist/lilact.development.min.js.map +2 -2
- package/dist/lilact.production.min.js +8 -8
- package/docs/functions/run.lazy.html +1 -1
- package/docs/functions/run.runScripts.html +1 -1
- package/docs/static/index.html +1 -1
- package/docs/static/lilact.development.js +4 -5
- package/docs/static/lilact.development.js.map +2 -2
- package/docs/static/lilact.development.min.js +8 -8
- package/docs/static/lilact.development.min.js.map +2 -2
- package/docs/static/lilact.production.min.js +8 -8
- package/examples/index.html +1 -1
- package/examples/lilact.development.js +4 -5
- package/examples/lilact.development.js.map +2 -2
- package/examples/lilact.development.min.js +8 -8
- package/examples/lilact.development.min.js.map +2 -2
- package/examples/lilact.production.min.js +8 -8
- package/package.json +1 -1
- package/src/run.jsx +92 -93
|
@@ -4079,6 +4079,8 @@ function lazy(factory) {
|
|
|
4079
4079
|
} catch (error2) {
|
|
4080
4080
|
status = "error";
|
|
4081
4081
|
result2 = error2;
|
|
4082
|
+
} finally {
|
|
4083
|
+
lilact_default[LAZY] = false;
|
|
4082
4084
|
}
|
|
4083
4085
|
if (lilact_default.isThenable(result2)) {
|
|
4084
4086
|
result2.then(
|
|
@@ -4095,13 +4097,10 @@ function lazy(factory) {
|
|
|
4095
4097
|
status = "success";
|
|
4096
4098
|
}
|
|
4097
4099
|
function LazyComponent(props) {
|
|
4098
|
-
if (status === "pending") {
|
|
4099
|
-
throw result2;
|
|
4100
|
-
}
|
|
4101
|
-
if (status === "error") {
|
|
4100
|
+
if (status === "pending" || status === "error") {
|
|
4102
4101
|
throw result2;
|
|
4103
4102
|
}
|
|
4104
|
-
const Component2 = result2;
|
|
4103
|
+
const Component2 = result2?.default ?? result2;
|
|
4105
4104
|
return createComponent(Component2, { ...props });
|
|
4106
4105
|
}
|
|
4107
4106
|
return LazyComponent;
|