dillon1000/react

Commit

[DOM] Add unstable_batchedUpdates to server-rendering-stub (#27028)

`unstable_batchedUpdates` shouldn't really be called on the server but
the semantics are clear enough and we can provide a trivial
implementation that calls the provided callback so we are adding it to
the server-rendering-stub.

This means we will also keep it around when we make the top level
react-dom exports match the server-rendering-stub in the next major
Browse files
Changed paths3 files
First-parent comparison
M packages/react-dom/server-rendering-stub.js ModifiedM packages/react-dom/src/__tests__/react-dom-server-rendering-stub-test.js ModifiedM packages/react-dom/src/server/ReactDOMServerRenderingStub.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…