Skip to content
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

Added redux store to full-post & refactored it to use redux ui state #3430

Merged
merged 2 commits into from
Feb 20, 2016

Conversation

samuelclemens
Copy link
Contributor

I made sure redux store is passed down to full post, similar to how it was done for sidebar.
The side-effect of this was the need to refactor the setState( { isVisibile: true } ) calls on the component.
It's now handled via redux.

This replaces #2932

@@ -374,7 +377,7 @@ FullPostContainer = React.createClass( {
mixins: [ PureRenderMixin ],

getInitialState: function() {
return assign( { isVisible: false }, this.getStateFromStores() );
return assign( {}, this.getStateFromStores() );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't even need the assign now

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed that, thanks.

Made 2 actions instead of 1 for showing/hiding the post
Switcher proccess.nextTick for lodash's defer
@blowery
Copy link
Contributor

blowery commented Feb 20, 2016

Looks great, merging!

blowery added a commit that referenced this pull request Feb 20, 2016
Added redux store to full-post & refactored it to use redux ui state
@blowery blowery merged commit 527c4e6 into Automattic:master Feb 20, 2016
@blowery blowery added [Feature] Reader The reader site on Calypso. [Type] Task labels Feb 20, 2016
@blowery blowery added this to the Reader: UI Nits milestone Feb 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants