react 19.2.0-canary-66f09bd0-20250806 → 19.2.0-canary-f1e70b5e-20250811

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.
@@ -458,35 +458,56 @@
458
458
  }
459
459
  function lazyInitializer(payload) {
460
460
  if (-1 === payload._status) {
461
- var ctor = payload._result;
462
- ctor = ctor();
463
- ctor.then(
461
+ var ioInfo = payload._ioInfo;
462
+ null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
463
+ ioInfo = payload._result;
464
+ var thenable = ioInfo();
465
+ thenable.then(
464
466
  function (moduleObject) {
465
- if (0 === payload._status || -1 === payload._status)
466
- (payload._status = 1), (payload._result = moduleObject);
467
+ if (0 === payload._status || -1 === payload._status) {
468
+ payload._status = 1;
469
+ payload._result = moduleObject;
470
+ var _ioInfo = payload._ioInfo;
471
+ null != _ioInfo && (_ioInfo.end = performance.now());
472
+ void 0 === thenable.status &&
473
+ ((thenable.status = "fulfilled"),
474
+ (thenable.value = moduleObject));
475
+ }
467
476
  },
468
477
  function (error) {
469
- if (0 === payload._status || -1 === payload._status)
470
- (payload._status = 2), (payload._result = error);
478
+ if (0 === payload._status || -1 === payload._status) {
479
+ payload._status = 2;
480
+ payload._result = error;
481
+ var _ioInfo2 = payload._ioInfo;
482
+ null != _ioInfo2 && (_ioInfo2.end = performance.now());
483
+ void 0 === thenable.status &&
484
+ ((thenable.status = "rejected"), (thenable.reason = error));
485
+ }
471
486
  }
472
487
  );
488
+ ioInfo = payload._ioInfo;
489
+ if (null != ioInfo) {
490
+ ioInfo.value = thenable;
491
+ var displayName = thenable.displayName;
492
+ "string" === typeof displayName && (ioInfo.name = displayName);
493
+ }
473
494
  -1 === payload._status &&
474
- ((payload._status = 0), (payload._result = ctor));
495
+ ((payload._status = 0), (payload._result = thenable));
475
496
  }
476
497
  if (1 === payload._status)
477
498
  return (
478
- (ctor = payload._result),
479
- void 0 === ctor &&
499
+ (ioInfo = payload._result),
500
+ void 0 === ioInfo &&
480
501
  console.error(
481
502
  "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
482
- ctor
503
+ ioInfo
483
504
  ),
484
- "default" in ctor ||
505
+ "default" in ioInfo ||
485
506
  console.error(
486
507
  "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
487
- ctor
508
+ ioInfo
488
509
  ),
489
- ctor.default
510
+ ioInfo.default
490
511
  );
491
512
  throw payload._result;
492
513
  }
@@ -1086,11 +1107,24 @@
1086
1107
  };
1087
1108
  exports.isValidElement = isValidElement;
1088
1109
  exports.lazy = function (ctor) {
1089
- return {
1090
- $$typeof: REACT_LAZY_TYPE,
1091
- _payload: { _status: -1, _result: ctor },
1092
- _init: lazyInitializer
1093
- };
1110
+ ctor = { _status: -1, _result: ctor };
1111
+ var lazyType = {
1112
+ $$typeof: REACT_LAZY_TYPE,
1113
+ _payload: ctor,
1114
+ _init: lazyInitializer
1115
+ },
1116
+ ioInfo = {
1117
+ name: "lazy",
1118
+ start: -1,
1119
+ end: -1,
1120
+ value: null,
1121
+ owner: null,
1122
+ debugStack: Error("react-stack-top-frame"),
1123
+ debugTask: console.createTask ? console.createTask("lazy()") : null
1124
+ };
1125
+ ctor._ioInfo = ioInfo;
1126
+ lazyType._debugInfo = [{ awaited: ioInfo }];
1127
+ return lazyType;
1094
1128
  };
1095
1129
  exports.memo = function (type, compare) {
1096
1130
  null == type &&
@@ -1244,7 +1278,7 @@
1244
1278
  exports.useTransition = function () {
1245
1279
  return resolveDispatcher().useTransition();
1246
1280
  };
1247
- exports.version = "19.2.0-canary-66f09bd0-20250806";
1281
+ exports.version = "19.2.0-canary-f1e70b5e-20250811";
1248
1282
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1249
1283
  "function" ===
1250
1284
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -543,4 +543,4 @@ exports.useSyncExternalStore = function (
543
543
  exports.useTransition = function () {
544
544
  return ReactSharedInternals.H.useTransition();
545
545
  };
546
- exports.version = "19.2.0-canary-66f09bd0-20250806";
546
+ exports.version = "19.2.0-canary-f1e70b5e-20250811";
@@ -428,35 +428,56 @@
428
428
  }
429
429
  function lazyInitializer(payload) {
430
430
  if (-1 === payload._status) {
431
- var ctor = payload._result;
432
- ctor = ctor();
433
- ctor.then(
431
+ var ioInfo = payload._ioInfo;
432
+ null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
433
+ ioInfo = payload._result;
434
+ var thenable = ioInfo();
435
+ thenable.then(
434
436
  function (moduleObject) {
435
- if (0 === payload._status || -1 === payload._status)
436
- (payload._status = 1), (payload._result = moduleObject);
437
+ if (0 === payload._status || -1 === payload._status) {
438
+ payload._status = 1;
439
+ payload._result = moduleObject;
440
+ var _ioInfo = payload._ioInfo;
441
+ null != _ioInfo && (_ioInfo.end = performance.now());
442
+ void 0 === thenable.status &&
443
+ ((thenable.status = "fulfilled"),
444
+ (thenable.value = moduleObject));
445
+ }
437
446
  },
438
447
  function (error) {
439
- if (0 === payload._status || -1 === payload._status)
440
- (payload._status = 2), (payload._result = error);
448
+ if (0 === payload._status || -1 === payload._status) {
449
+ payload._status = 2;
450
+ payload._result = error;
451
+ var _ioInfo2 = payload._ioInfo;
452
+ null != _ioInfo2 && (_ioInfo2.end = performance.now());
453
+ void 0 === thenable.status &&
454
+ ((thenable.status = "rejected"), (thenable.reason = error));
455
+ }
441
456
  }
442
457
  );
458
+ ioInfo = payload._ioInfo;
459
+ if (null != ioInfo) {
460
+ ioInfo.value = thenable;
461
+ var displayName = thenable.displayName;
462
+ "string" === typeof displayName && (ioInfo.name = displayName);
463
+ }
443
464
  -1 === payload._status &&
444
- ((payload._status = 0), (payload._result = ctor));
465
+ ((payload._status = 0), (payload._result = thenable));
445
466
  }
446
467
  if (1 === payload._status)
447
468
  return (
448
- (ctor = payload._result),
449
- void 0 === ctor &&
469
+ (ioInfo = payload._result),
470
+ void 0 === ioInfo &&
450
471
  console.error(
451
472
  "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
452
- ctor
473
+ ioInfo
453
474
  ),
454
- "default" in ctor ||
475
+ "default" in ioInfo ||
455
476
  console.error(
456
477
  "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
457
- ctor
478
+ ioInfo
458
479
  ),
459
- ctor.default
480
+ ioInfo.default
460
481
  );
461
482
  throw payload._result;
462
483
  }
@@ -767,11 +788,24 @@
767
788
  };
768
789
  exports.isValidElement = isValidElement;
769
790
  exports.lazy = function (ctor) {
770
- return {
771
- $$typeof: REACT_LAZY_TYPE,
772
- _payload: { _status: -1, _result: ctor },
773
- _init: lazyInitializer
774
- };
791
+ ctor = { _status: -1, _result: ctor };
792
+ var lazyType = {
793
+ $$typeof: REACT_LAZY_TYPE,
794
+ _payload: ctor,
795
+ _init: lazyInitializer
796
+ },
797
+ ioInfo = {
798
+ name: "lazy",
799
+ start: -1,
800
+ end: -1,
801
+ value: null,
802
+ owner: null,
803
+ debugStack: Error("react-stack-top-frame"),
804
+ debugTask: console.createTask ? console.createTask("lazy()") : null
805
+ };
806
+ ctor._ioInfo = ioInfo;
807
+ lazyType._debugInfo = [{ awaited: ioInfo }];
808
+ return lazyType;
775
809
  };
776
810
  exports.memo = function (type, compare) {
777
811
  null == type &&
@@ -816,5 +850,5 @@
816
850
  exports.useMemo = function (create, deps) {
817
851
  return resolveDispatcher().useMemo(create, deps);
818
852
  };
819
- exports.version = "19.2.0-canary-66f09bd0-20250806";
853
+ exports.version = "19.2.0-canary-f1e70b5e-20250811";
820
854
  })();
@@ -430,4 +430,4 @@ exports.useId = function () {
430
430
  exports.useMemo = function (create, deps) {
431
431
  return ReactSharedInternals.H.useMemo(create, deps);
432
432
  };
433
- exports.version = "19.2.0-canary-66f09bd0-20250806";
433
+ exports.version = "19.2.0-canary-f1e70b5e-20250811";
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "keywords": [
5
5
  "react"
6
6
  ],
7
- "version": "19.2.0-canary-66f09bd0-20250806",
7
+ "version": "19.2.0-canary-f1e70b5e-20250811",
8
8
  "homepage": "https://react.dev/",
9
9
  "bugs": "https://github.com/facebook/react/issues",
10
10
  "license": "MIT",