← facebook/react

CODEFOSSIL · react

updateHostRoot

function in packages/react-reconciler/src/ReactFiberBeginWork.js:1828 · Born 2016-12-21 (DERIVED, confidence 0.80)

9years old
75changes
6fixes
16authors
0callers
20172018201920202021202220232024202520262016-12-21 0907a49 Add bailout to HostRoot2016-12-21 3d0cf47 Added ReactFiberStack shared by ReactFiberContext and ReactFiberHostContext ReactFiberStack is the new underlying stack used by ReactFiberContext and ReactFiberHostContext. The goal is to simplify the 2 context managers and to add more errors/dev-warnings when we pop unexpected. This changeset currently causes a lot of tests to fail (as we are currently popping too many times and/or in the wrong order). I'm pushing this branch now to share with Sebastian as he is working on a related cleanup pass at beginWork.2016-12-22 13980e6 Fiber: Fix reentrant mounting in synchronous mode (#8623)2017-01-12 1ed304f Move memoization to begin phase2017-02-11 350d736 Use `T | null` instead of `?T` types2017-03-14 1843f87 Run prettier2017-05-25 9c7a312 Hydration of previously rendered server markup (#9580)2017-06-07 80fffbe Fix a bug with memoizedState affecting React DevTools (#9886)2017-07-01 a0af1e1 Remove ability to resume work2017-09-12 65b9ad9 Fix context memory leak (#10680)2017-10-10 3019210 Expiration times (#10426)2017-10-14 3ffb5d0 Deterministic updates (#10715)2017-10-14 7687962 ReactDOM.createRoot (#11225)2017-11-17 fd03a86 Always reconcile against current children (#11564)2018-02-24 94518b0 Add stack unwinding phase for handling errors (#12201)2018-04-23 b548b3c Decouple update queue from Fiber type (#12600)2018-05-01 ad7cd68 Rename internal property to fix React DevTools (#12727)2018-05-19 47b003a Resolve host configs at build time (#12792)2018-07-20 2b509e2 [Experimental] API for reading context from within any render phase function (#13139)2019-08-22 05f5192 [Partial Hydration] Dispatching events should not work until hydration commits (#16532)2019-09-05 8d7c733 [Partial Hydration] Don't invoke listeners on parent of dehydrated event target (#16591)2019-09-11 b0a8a3e Mark root as already hydrated after committing (#16739)2019-12-11 7bf40e1 Initialize update queue object on mount (#17560)2020-04-01 3e94bce Enable prefer-const lint rules (#18451)2020-05-21 142d4f1 useMutableSource hydration support (#18771)2020-06-12 8f05f2b Land Lanes implementation in old fork (#19108)2020-09-04 1665443 Rename effect fields (#19755)2020-12-18 efc57e5 Add built-in Suspense cache with support for invalidation (refreshing) (#20456)2021-03-19 6d3ecb7 Remove unstable_changedBits (#20953)2021-09-20 8209de2 Delete useMutableSource implementation (#22292)2021-09-22 82c8fa9 Add back useMutableSource temporarily (#22396)2021-09-24 029fdce root.hydrate -> root.isDehydrated (#22420)2021-09-30 a724a3b [RFC] Codemod invariant -> throw new Error (#22435)2022-02-24 42f15b3 [DevTools][Transition Tracing] onTransitionComplete and onTransitionStart implmentation (#23313)2022-03-01 feefe43 Refactor Cache Code (#23393)2022-03-12 83b941a Add isRootDehydrated function2022-03-12 02b65fd Allow updates at lower pri without forcing client render2022-03-12 832e298 Revert accdientally merged PR (#24081)2022-03-20 2e0d86d Allow updating dehydrated root at lower priority without forcing client render (#24082)2022-04-01 ebd7ff6 Don't recreate the same fallback on the client if hydrating suspends (#24236)2022-04-06 ece5295 Remove unnecessary flag check (#24284)2022-04-09 e0160d5 add transition tracing transitions stack (#24321)2022-04-11 fea6f8d [Transition Tracing] Add transition to OffscreenState and pendingSuspenseBoundaries to RootState (#24340)2022-04-12 f7cf077 [Transition Tracing] Add Offscreen Queue (#24341)2022-04-20 392808a Land enableClientRenderFallbackOnTextMismatch flag (#24405)2022-04-25 bd4784c Revert #24236 (Don't recreate the same fallback on the client if hydrating suspends) (#24434)2022-04-28 ce13860 Remove enablePersistentOffscreenHostContainer flag (#24460)2022-05-12 34da5aa Only treat updates to lazy as a new mount in legacy mode (#24530)2022-06-06 4f29ba1 support errorInfo in onRecoverableError (#24591)2022-06-17 12a738f [Transition Tracing] Add Support for Multiple Transitions on Root (#24732)2022-06-21 cf665c4 [DevTools] Refactor incompleteTransitions field from Root Fiber memoized state to FiberRoot (#24765)2022-06-30 4012963 [Transition Tracing] Refactor Transition Tracing Root Code (#24766)2022-06-30 e61fd91 Revert "[Transition Tracing] Refactor Transition Tracing Root Code (#24766)" (#24829)2022-06-30 4cd788a Revert "Revert [Transition Tracing] Refactor Transition Tracing Root Code" (#24830)2022-09-30 7b25b96 [Fizz/Float] Float for stylesheet resources (#25243)2022-10-11 2cf4352 Implement HostSingleton Fiber type (#25426)2022-10-21 1f7a2f5 [Float] support title tags as Resources (#25508)2023-01-09 0b4f443 [flow] enable enforce_local_inference_annotations (#25921)2023-01-31 6b30832 Upgrade prettier (#26081)2023-02-09 6ddcbd4 [flow] enable LTI inference mode (#26104)2023-02-10 6396b66 Model Float on Hoistables semantics (#26106)2023-03-06 8a9f82e [Float][Fizz][Fiber] - Do not hoist elements with `itemProp` & hydrate more tolerantly in hoist contexts (#26256)2023-04-21 fd3fb8e Rethrow errors from form actions (#26689)2023-04-26 540bab0 Implement experimental_useFormStatus (#26722)2023-06-27 80d9a40 Remove useMutableSource (#27011)2024-01-25 11c9fd0 Batch async actions even if useTransition is unmounted (#28078)2024-11-04 07aa494 Remove enableRefAsProp feature flag (#30346)2024-12-13 ef63718 Remove enableAsyncActions (#31757)2024-12-15 e06c72f [flags] Cleanup enableCache (#31778)2024-12-17 34ee391 Clean up enableLazyContextPropagation (#31810)2025-01-29 c492f97 [Fiber] Support Suspense boundaries anywhere (excluding hydration) (#32163)2026-06-05 fbb1370 [flow] Bump flow to v0.307.1 (#36199)2026-06-05 900ae09 [flow] Bump flow to v0.317.0 (#36701)2026-07-08 df4bd1b [Fast Refresh] Unify hot reload type resolution (#36962)2026-07-08 3b9b59f [Fast Refresh] Derive the fiber tag from the resolved type when mounting (#36963)2016-12-21 b4b2148 Move all the begin work stuff into their own helper functions
Every commit that changed it, 2016-12-21 – 2026-07-08. Raised orange dots are fixes.
  1. Changed [Fast Refresh] Derive the fiber tag from the resolved type when mounting (#36963)

    3b9b59f · Sophie Alpert

  2. Changed [Fast Refresh] Unify hot reload type resolution (#36962)

    df4bd1b · Sophie Alpert

  3. Changed [flow] Bump flow to v0.317.0 (#36701)

    900ae09 · Sam Zhou

  4. Changed [flow] Bump flow to v0.307.1 (#36199)

    fbb1370 · Sam Zhou

  5. Changed [Fiber] Support Suspense boundaries anywhere (excluding hydration) (#32163)

    c492f97 · Josh Story

  6. Changed Clean up enableLazyContextPropagation (#31810)

    34ee391 · Jack Pope

  7. Changed [flags] Cleanup enableCache (#31778)

    e06c72f · Ricky

  8. Changed Remove enableAsyncActions (#31757)

    ef63718 · Ricky

  9. Changed Remove enableRefAsProp feature flag (#30346)

    07aa494 · Jan Kassens

  10. Changed Batch async actions even if useTransition is unmounted (#28078)

    11c9fd0 · Andrew Clark

  11. Changed Remove useMutableSource (#27011)

    80d9a40 · Noah Lemen

  12. Changed Implement experimental_useFormStatus (#26722)

    540bab0 · Andrew Clark

  13. Changed Rethrow errors from form actions (#26689)

    fd3fb8e · Andrew Clark

  14. Changed [Float][Fizz][Fiber] - Do not hoist elements with `itemProp` & hydrate more tolerantly in hoist contexts (#26256)

    8a9f82e · Josh Story

  15. Changed Model Float on Hoistables semantics (#26106)

    6396b66 · Josh Story

  16. Changed [flow] enable LTI inference mode (#26104)

    6ddcbd4 · Jan Kassens

  17. Changed Upgrade prettier (#26081)

    6b30832 · Jan Kassens

  18. Changed [flow] enable enforce_local_inference_annotations (#25921)

    0b4f443 · Jan Kassens

  19. Changed [Float] support title tags as Resources (#25508)

    1f7a2f5 · Josh Story

  20. Changed Implement HostSingleton Fiber type (#25426)

    2cf4352 · Josh Story

  21. Changed [Fizz/Float] Float for stylesheet resources (#25243)

    7b25b96 · Josh Story

  22. Changed Revert "Revert [Transition Tracing] Refactor Transition Tracing Root Code" (#24830)

    4cd788a · Luna Ruan fix · INFERRED

  23. Changed Revert "[Transition Tracing] Refactor Transition Tracing Root Code (#24766)" (#24829)

    e61fd91 · Andrew Clark fix · INFERRED

  24. Changed [Transition Tracing] Refactor Transition Tracing Root Code (#24766)

    4012963 · Luna Ruan

  25. Changed [DevTools] Refactor incompleteTransitions field from Root Fiber memoized state to FiberRoot (#24765)

    cf665c4 · Luna Ruan

  26. Changed [Transition Tracing] Add Support for Multiple Transitions on Root (#24732)

    12a738f · Luna Ruan

  27. Changed support errorInfo in onRecoverableError (#24591)

    4f29ba1 · Josh Story

  28. Changed Only treat updates to lazy as a new mount in legacy mode (#24530)

    34da5aa · Ricky

  29. Changed Remove enablePersistentOffscreenHostContainer flag (#24460)

    ce13860 · Andrew Clark

  30. Changed Revert #24236 (Don't recreate the same fallback on the client if hydrating suspends) (#24434)

    bd4784c · dan

  31. Changed Land enableClientRenderFallbackOnTextMismatch flag (#24405)

    392808a · Andrew Clark

  32. Changed [Transition Tracing] Add Offscreen Queue (#24341)

    f7cf077 · Luna Ruan

  33. Changed [Transition Tracing] Add transition to OffscreenState and pendingSuspenseBoundaries to RootState (#24340)

    fea6f8d · Luna Ruan

  34. Changed add transition tracing transitions stack (#24321)

    e0160d5 · Luna Ruan

  35. Changed Remove unnecessary flag check (#24284)

    ece5295 · zhoulixiang

  36. Changed Don't recreate the same fallback on the client if hydrating suspends (#24236)

    ebd7ff6 · dan

  37. Changed Allow updating dehydrated root at lower priority without forcing client render (#24082)

    2e0d86d · Andrew Clark

  38. Changed Revert accdientally merged PR (#24081)

    832e298 · Andrew Clark

  39. Changed Allow updates at lower pri without forcing client render

    02b65fd · Andrew Clark

  40. Changed Add isRootDehydrated function

    83b941a · Andrew Clark

  41. Changed Refactor Cache Code (#23393)

    feefe43 · Luna Ruan

  42. Changed [DevTools][Transition Tracing] onTransitionComplete and onTransitionStart implmentation (#23313)

    42f15b3 · Luna Ruan

  43. Changed [RFC] Codemod invariant -> throw new Error (#22435)

    a724a3b · Andrew Clark

  44. Changed root.hydrate -> root.isDehydrated (#22420)

    029fdce · Andrew Clark

  45. Changed Add back useMutableSource temporarily (#22396)

    82c8fa9 · Andrew Clark

  46. Changed Delete useMutableSource implementation (#22292)

    8209de2 · Andrew Clark

  47. Changed Remove unstable_changedBits (#20953)

    6d3ecb7 · Andrew Clark

  48. Changed Add built-in Suspense cache with support for invalidation (refreshing) (#20456)

    efc57e5 · Andrew Clark

  49. Changed Rename effect fields (#19755)

    1665443 · Andrew Clark

  50. Changed Land Lanes implementation in old fork (#19108)

    8f05f2b · Andrew Clark

  51. Changed useMutableSource hydration support (#18771)

    142d4f1 · Brian Vaughn

  52. Changed Enable prefer-const lint rules (#18451)

    3e94bce · Sebastian Markbåge

  53. Changed Initialize update queue object on mount (#17560)

    7bf40e1 · Andrew Clark

  54. Changed Mark root as already hydrated after committing (#16739)

    b0a8a3e · Sebastian Markbåge

  55. Changed [Partial Hydration] Don't invoke listeners on parent of dehydrated event target (#16591)

    8d7c733 · Sebastian Markbåge

  56. Changed [Partial Hydration] Dispatching events should not work until hydration commits (#16532)

    05f5192 · Sebastian Markbåge

  57. Changed [Experimental] API for reading context from within any render phase function (#13139)

    2b509e2 · Andrew Clark

  58. Changed Resolve host configs at build time (#12792)

    47b003a · Dan Abramov

  59. Changed Rename internal property to fix React DevTools (#12727)

    ad7cd68 · Dan Abramov fix · INFERRED

  60. Changed Decouple update queue from Fiber type (#12600)

    b548b3c · Andrew Clark

  61. Changed Add stack unwinding phase for handling errors (#12201)

    94518b0 · Andrew Clark

  62. Changed Always reconcile against current children (#11564)

    fd03a86 · Andrew Clark

  63. Changed ReactDOM.createRoot (#11225)

    7687962 · Andrew Clark

  64. Changed Deterministic updates (#10715)

    3ffb5d0 · Andrew Clark

  65. Changed Expiration times (#10426)

    3019210 · Andrew Clark

  66. Changed Fix context memory leak (#10680)

    65b9ad9 · Dan Abramov fix · INFERRED

  67. Changed Remove ability to resume work

    a0af1e1 · Andrew Clark

  68. Changed Fix a bug with memoizedState affecting React DevTools (#9886)

    80fffbe · Dan Abramov fix · INFERRED

  69. Changed Hydration of previously rendered server markup (#9580)

    9c7a312 · Sebastian Markbåge

  70. Changed Run prettier

    1843f87 · Sebastian Markbage

  71. Changed Use `T | null` instead of `?T` types

    350d736 · Andrew Clark

  72. Changed Move memoization to begin phase

    1ed304f · Andrew Clark

  73. Changed Fiber: Fix reentrant mounting in synchronous mode (#8623)

    13980e6 · Ben Alpert fix · INFERRED

  74. Changed Added ReactFiberStack shared by ReactFiberContext and ReactFiberHostContext ReactFiberStack is the new underlying stack used by ReactFiberContext and ReactFiberHostContext. The goal is to simplify the 2 context managers and to add more errors/dev-warnings when we pop unexpected. This changeset currently causes a lot of tests to fail (as we are currently popping too many times and/or in the wrong order). I'm pushing this branch now to share with Sebastian as he is working on a related cleanup pass at beginWork.

    3d0cf47 · Brian Vaughn

  75. Changed Add bailout to HostRoot

    0907a49 · Sebastian Markbage

  76. Born Move all the begin work stuff into their own helper functions

    b4b2148 · Sebastian Markbage