Skip to content

[Bug]: Missing clarification for unstable_batchedUpdates behavior #8426

@nguynich

Description

@nguynich

Summary

The documentation does not clearly explain the current behavior of unstable_batchedUpdates, which can be misleading for developers.

Page

https://react.dev/reference/react-dom

Details

While reviewing the React DOM source code, I noticed that unstable_batchedUpdates may behave as a no-op in modern React configurations (outside of legacy mode). However, this behavior is not clearly explained in the documentation.

This can lead developers to assume that the function still provides batching behavior, when in practice it may not affect updates in modern setups.

Suggested improvement:

  • Clarify when unstable_batchedUpdates is effective
  • Indicate that it may behave as a no-op in modern React
  • Provide guidance on whether it is still recommended for use

This would help prevent confusion and improve developer understanding of the API.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions