-
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
Skyjumping Beavers && Post-editor add redux actions #2 #3202
Conversation
postActions.edit( { date: date ? date.format() : null } ); | ||
this.props.setDate( date ); |
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 just want to make sure this was a conscious decision to move this logic (setting to date.format() or null) into the setDate reducer. Maybe we should add a note into the placeholder reducer about this?
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 is moved to action, not the reducer, but yes, it's a conscious decision, and it's a good idea to put some information there!
I generally am trying to sneak logic out of the view, the view should not be concerned about the format that API takes data in
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.
Done in 0f662ce
69904ed
to
0f662ce
Compare
|
||
export default React.createClass( { | ||
const EditorFeaturedImagePreviewContainer = React.createClass( { | ||
displayName: 'EditorFeaturedImagePreviewContainer', | ||
|
||
propTypes: { |
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.
shouldn't we add setFeaturedImage
as a propType?
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.
oh, and set a default prop?
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.
Good catch!
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.
Added in 2f78c97
I just rebased the whole thing and it seems some stuff moved around in the tree. Debugging! |
I found one error and had a couple of questions, but overall this feels really solid to me. |
Error fixed in 962a4bd |
This looks great! |
…tions Skyjumping Beavers && Post-editor add redux actions #2
Forgot to squash. Sorry :/ |
Post-editor reduxification: add redux actions #2
Continuing work from #3025
Progress trakcing of whole effort: #2993
Parachuting Beavers (Clickbait)
I am now putting clickbait in my PRs to facilitate reviews
Did you know that after second world war Idaho Fish and Game commitee was parachuting beavers into remote areas? They were pretty badass!
More info here