-
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
Importer: Continue reduxification work #5936
Conversation
da0e59a
to
d0e9e29
Compare
startImport: flowRight( dispatch, startImport ) | ||
} ); | ||
|
||
export default connectDispatcher( null, mapDispatchToProps )( ImporterHeader ); |
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.
mapDispatchToProps can also be an object:
export default connectDispatcher( null, { startImport } )( ImporterHeader );
https://github.com/reactjs/react-redux/blob/master/docs/api.md#arguments
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.
nice! I didn't know…
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.
Oops - haha. This isn't connect
- it's my transition function which doesn't have that property. Reverting the changes…
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.
Ah missed the dispatcher-converter there.
👍 Looks good |
Updates the `startImport` action, which is one of the few actions that can be simply converted without getting into thunk issues.
d0e9e29
to
1f17a25
Compare
@gwwar thanks for the review - I'm changing I'll merge after the tests pass. |
1f17a25
to
a0ccf55
Compare
Part of #5303
Updates the
startImport
action, which is one of the few actions thatcan be simply converted without getting into thunk issues.
No functional or stylistic changes are intended.
Testing
Navigate to My Sites > Settings > Import and attempt to start a new import from the collapsed import panel; either WordPress or Medium will work. If an import session is currently in progress, cancel it and try to start a new one. This is mostly a smoke-test.
cc: @roundhill @rodrigoi
Test live: https://calypso.live/?branch=update/importer-redux/start-import