Skip to content

Conversation

cubadomingo
Copy link
Contributor

@cubadomingo cubadomingo commented Dec 18, 2016

Hey, I'm proposing a change in the BaseComponent as it seems to be using the PureRenderMixin mixin. The react docs states that we should consider using React.PureComponent instead, which essentially does the same shallow compare.
screen shot 2016-12-18 at 1 26 17 pm
screen shot 2016-12-18 at 1 24 28 pm


This change is Reviewable

Hey, I'm proposing a change in the BaseComponent as it seems to be using the `PureRenderMixin` mixin. The react docs states that we should consider using React.PureComponent instead, which essentially does the same shallow compare.
@justin808
Copy link
Member

@robwise @alexfedoseev FYI...Agree?

@alex35mil
Copy link
Member

@justin808 Yes, absolutely.

@justin808
Copy link
Member

:lgtm:

Thanks @cubadomingo


Reviewed 1 of 1 files at r1, 3 of 3 files at r2.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@justin808 justin808 merged commit 1a91402 into shakacode:master Dec 20, 2016
@cubadomingo cubadomingo deleted the patch-2 branch December 20, 2016 21:40
@Judahmeek
Copy link
Collaborator

If all the BaseComponent is doing is extending React.PureComponent, then why have BaseComponent at all?

@justin808
Copy link
Member

We could inline the usages of BaseComponent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants