Skip to content

[Test] Update flushSync tests to use react-dom#28490

Merged
gnoff merged 1 commit intofacebook:mainfrom
gnoff:convert-flush-sync-test
Mar 5, 2024
Merged

[Test] Update flushSync tests to use react-dom#28490
gnoff merged 1 commit intofacebook:mainfrom
gnoff:convert-flush-sync-test

Conversation

@gnoff
Copy link
Collaborator

@gnoff gnoff commented Mar 5, 2024

Updates the flushSync tests to use react-dom instead of ReactNoop. flushSync is primarily a react-dom API and asserting the implementation of ReactNoop is not really ideal especially since we are going to be refactoring flushSync soon to not be implemented in the reconciler internals.

ReactNoop still have a flushSync api and it can still be used in other tests that are primarily about testing other functionlity and use ReactNoop as the renderer.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants