Skip to content

Commit

Permalink
useSelect: implement with useSyncExternalStore (#46538)
Browse files Browse the repository at this point in the history
* useSelect: implement with useSyncExternalStore

* Implement async mode, optimize and cleanup

* Handle transition away from async mode

* Implement static select mode

* Implement useSuspenseSelect

* Mark listening stores only when going to resubscribe

* Comment the useSelect implementation

* Update the nested component test for modern times

* Add unit test for independent resolutions
  • Loading branch information
jsnajdr authored Jan 5, 2023
1 parent 7e7e78c commit 13c9184
Show file tree
Hide file tree
Showing 3 changed files with 232 additions and 295 deletions.
Loading

1 comment on commit 13c9184

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/3847092345
📝 Reported issues:

Please sign in to comment.