Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions packages/react-reconciler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -351,3 +351,21 @@ If you use the persistent mode instead of the mutation mode, you would still nee
You can optionally implement hydration to "attach" to the existing tree during the initial render instead of creating it from scratch. For example, the DOM renderer uses this to attach to an HTML markup.

To support hydration, you need to declare `supportsHydration: true` and then implement the methods in the "Hydration" section [listed in this file](https://github.com/facebook/react/blob/main/packages/react-reconciler/src/forks/ReactFiberConfig.custom.js). File an issue if you need help.


### Removal of flushSync

The flushSync export was previously available from react-reconciler but has been removed without a public deprecation period. Custom renderers relying on this API may encounter breaking changes.

# Migration

Custom renderers should migrate to the following APIs instead:

- updateContainerSync — for synchronously updating a container
- flushSyncWork — for flushing pending synchronous work

These APIs provide more explicit control over synchronous rendering behavior and replace the previous flushSync usage.

# Why this changed

The reconciler internals were updated to better separate renderer responsibilities and reduce reliance on ambiguous synchronous entry points.