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.
@@ -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;