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

Adding isMemo check to react-is package #14313

Merged
merged 1 commit into from Nov 28, 2018
Merged

Adding isMemo check to react-is package #14313

merged 1 commit into from Nov 28, 2018

Conversation

jintoppy
Copy link
Contributor

@jintoppy jintoppy commented Nov 23, 2018

This pull request is related to #14278

What does it do?

Adds isMemo check to the react-is package.

Why?

Adding isMemo check will help to write a clean code for packages which are doing custom rendering, like Enzyme.

Please see the issue and PR raised on Enzyme

enzymejs/enzyme#1875
enzymejs/enzyme#1914

Copy link
Contributor

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

Thanks! This is needed for enzyme support of React.memo.

@ljharb
Copy link
Contributor

ljharb commented Nov 28, 2018

cc @gaearon @sebmarkbage any chance we could get a merge + minor release of react-is for this?

@sebmarkbage sebmarkbage merged commit 4f964f0 into facebook:master Nov 28, 2018
@bvaughn bvaughn mentioned this pull request Dec 12, 2018
jetoneza pushed a commit to jetoneza/react that referenced this pull request Jan 23, 2019
n8schloss pushed a commit to n8schloss/react that referenced this pull request Jan 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants