[Fizz] Push a stalled use() to the ownerStack/debugTask
Same as https://github.com/facebook/react/issues/33634 but for use and promise-as-a-child.
An alternative to re-rendering would've been to eagerly collect use() calls but we know Error() is slow in v8.
The danger with lazily collecting use() is that the Thenable may be resolved when we abort.
In those cases we remove instrumentation on the last thenable to ensure we suspend again. To ensure Thenable subclasses can't observe the corrupted state, we noop .then.
The shown stack relies on sourcemaps with ignoreList. Otherwise it'll point into React internals. From the dispatcher we wouldn't know how many stacks we have to cut without a circular dependency to the React.use function.
Comparing: bf1afade8d95d2ef6e862d995ee74921ca8d47c7...3c7b53f49f89cc30ad35c311e7ee665d535104aa
Critical size changes
Includes critical production bundles, as well as any change greater than 2%:
| Name | +/- | Base | Current | +/- gzip | Base gzip | Current gzip |
|---|---|---|---|---|---|---|
| oss-stable/react-dom/cjs/react-dom.production.js | = | 6.84 kB | 6.84 kB | +0.16% | 1.88 kB | 1.88 kB |
| oss-stable/react-dom/cjs/react-dom-client.production.js | = | 608.36 kB | 608.36 kB | = | 107.68 kB | 107.68 kB |
| oss-experimental/react-dom/cjs/react-dom.production.js | = | 6.84 kB | 6.84 kB | +0.16% | 1.88 kB | 1.88 kB |
| oss-experimental/react-dom/cjs/react-dom-client.production.js | = | 667.47 kB | 667.47 kB | = | 117.57 kB | 117.57 kB |
| facebook-www/ReactDOM-prod.classic.js | = | 693.67 kB | 693.67 kB | = | 122.06 kB | 122.07 kB |
| facebook-www/ReactDOM-prod.modern.js | = | 684.10 kB | 684.10 kB | = | 120.44 kB | 120.45 kB |
| oss-stable-semver/react-server/cjs/react-server.development.js | +2.12% | 205.20 kB | 209.55 kB | +2.24% | 36.17 kB | 36.98 kB |
| oss-stable/react-server/cjs/react-server.development.js | +2.12% | 205.20 kB | 209.55 kB | +2.24% | 36.17 kB | 36.98 kB |
| oss-experimental/react-server/cjs/react-server.development.js | +2.07% | 209.99 kB | 214.34 kB | +2.17% | 37.10 kB | 37.90 kB |
Significant size changes
Includes any change greater than 0.2%:
Expand to show
Generated by :no_entry_sign: dangerJS against 3c7b53f49f89cc30ad35c311e7ee665d535104aa