Commit 5d1ce65
authored
Align StrictMode behaviour with production (#25049)
* Skip double invoking effects in Offscreen
* Run yarn replace-fork
* Use executionContext to disable profiler timer
* Restructure recursion into two functions
* Fix ReactStrictMode test
* Use gate pragma in ReacetOffscreenStrictMode test
* Set and reset current debug fiber in dev
* Skip over paths that don't include any insertions
* Extract common logic to check for profiling to a helper function
* Remove hasPassiveEffects flag from StrictMode
* Fix flow issues
* Revert "Skip over paths that don't include any insertions"1 parent 9e67e7a commit 5d1ce65Copy full SHA for 5d1ce65
10 files changed
+376-557Lines changed: 376 additions & 557 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- packages
- react-reconciler/src
- __tests__
- react/src/__tests__
Expand file treeCollapse file tree
Open diff view settings
Collapse file
packages/react-reconciler/src/ReactChildFiber.new.js
Copy file name to clipboardExpand all lines: packages/react-reconciler/src/ReactChildFiber.new.js+9-4Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
13 | 13 | |
14 | 14 | |
15 | 15 | |
16 | | - |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
17 | 22 | |
18 | 23 | |
19 | 24 | |
| ||
343 | 348 | |
344 | 349 | |
345 | 350 | |
346 | | - |
| 351 | + |
347 | 352 | |
348 | 353 | |
349 | 354 | |
350 | 355 | |
351 | 356 | |
352 | 357 | |
353 | 358 | |
354 | | - |
| 359 | + |
355 | 360 | |
356 | 361 | |
357 | 362 | |
| ||
360 | 365 | |
361 | 366 | |
362 | 367 | |
363 | | - |
| 368 | + |
364 | 369 | |
365 | 370 | |
366 | 371 | |
|
Collapse file
packages/react-reconciler/src/ReactChildFiber.old.js
Copy file name to clipboardExpand all lines: packages/react-reconciler/src/ReactChildFiber.old.js+9-4Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
13 | 13 | |
14 | 14 | |
15 | 15 | |
16 | | - |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
17 | 22 | |
18 | 23 | |
19 | 24 | |
| ||
343 | 348 | |
344 | 349 | |
345 | 350 | |
346 | | - |
| 351 | + |
347 | 352 | |
348 | 353 | |
349 | 354 | |
350 | 355 | |
351 | 356 | |
352 | 357 | |
353 | 358 | |
354 | | - |
| 359 | + |
355 | 360 | |
356 | 361 | |
357 | 362 | |
| ||
360 | 365 | |
361 | 366 | |
362 | 367 | |
363 | | - |
| 368 | + |
364 | 369 | |
365 | 370 | |
366 | 371 | |
|
0 commit comments