-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Monitor store deps in useSelect #26733
Conversation
Size Change: +576 B (0%) Total Size: 1.21 MB
ℹ️ View Unchanged
|
5b706e4
to
7ae23f2
Compare
@youknowriad, what was the reason |
I don't remember exactly the original reasons but I do know we use it for at least two things:
|
Yes, it all makes sense to use |
What do you mean? these are already proxy selectors. I also think we have use-cases where we want to combine results from several stores in a single selector. |
Couldn't those be replaced with editor-specific react hooks? This way they wouldn't have to be exposed as a public API by default. And no registry selectors = less overall complexity. |
There are more selectors like the following: gutenberg/packages/edit-site/src/store/selectors.js Lines 43 to 45 in cdd9b9e
|
I added some relevant considerations in #26692 (comment) - let's move the discussion there? |
Closing for now (see #26692 (comment)). |
🚧 TBD