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

shallow render does not work with `memo` and `defaultProps` #15556

Open
ljharb opened this issue May 2, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@ljharb
Copy link
Contributor

commented May 2, 2019

Do you want to request a feature or report a bug?
bug

What is the current behavior?
shallow renderer does not apply defaultProps to memoized components.

See https://jsfiddle.net/85ags4qh/

What is the expected behavior?
defaultProps are applied.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
16.8.6 of react, react-dom, and the shallow renderer.

ljharb added a commit to airbnb/enzyme that referenced this issue May 2, 2019

ljharb added a commit to airbnb/enzyme that referenced this issue May 2, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.