-
Notifications
You must be signed in to change notification settings - Fork 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
SDK: Try wp.data with calypso state tree "rewrite" #26930
Conversation
errorLogger.saveDiagnosticReducer( () => ( { tests: getSavedVariations() } ) ); | ||
analytics.on( 'record-event', ( eventName, eventProperties ) => | ||
errorLogger.saveExtraData( { lastTracksEvent: eventProperties } ) | ||
if ( config.isEnabled( 'catch-js-errors' ) && ! document.getElementById( 'primary' ) ) { |
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 code seems extraneous to this PR's purpose. If it's a separate improvement, would it make sense to put it in a standalone PR?
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.
It's in #26944 for separate review, but I'm leaving it included on this branch since it wouldn't work otherwise. (tl;dr this extraneous -- and obsolete -- empty Layout
would leave wpRegistry
undefined
upon first render of RegistryProvider
, and that breaks things quite badly).
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.
I see. If you want them reviewed separately, you may want to switch the base of this PR to that branch then.
I suppose this can be closed? |
I'll close this, feel free to reopen if you'd like. |
WIP. Alternative to #26838.
Includes #26944, so review & merge that PR before rebasing this one.
withSelect
/withDispatch
@wordpress/data
'sRegistryProvider
state.subtree.something
tostate.something
)connect
towithSelect
To Test:
http://calypso.localhost:3000/me/account
and change the "Admin Color Scheme"withSelect
now.