-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Support private selectors and actions for stores registered via registry.registerStore() and for sub registries. #47421
Conversation
Size Change: +106 B (0%) Total Size: 1.31 MB
ℹ️ View Unchanged
|
Flaky tests detected in ae29f66b1ede2c02ec93e6cfc324d6edd10533ea. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4014453357
|
…try.registerStore() and for sub registries.
…e() on the registry object
485ef83
to
3b65448
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, thank you Adam!
Thanks Adam! |
Description
registerPrivateActions
andregisterPrivateSelectors
only supported stores created usingcreateReduxStore
. On stores registered using the deprecatedregisterStore
helper the private actions are not returned uponunlock()
-ing theuseDispatch()
call (as reported by @talldan in #47375 (comment)).This PR adds the missing support for the
registerStore()
stores as well as for the children stores in sub registries.Test plan
Confirm the CI checks pass, the code updates make sense, and the documentation update is easy to understand.
cc @talldan @noisysocks @ntsekouras @mcsf @Mamaduka