Closed tomatau closed 5 years ago
Need to revert https://github.com/adriantoine/enzyme-to-json/pull/145
I did it in release 3.4.2
The PR was made to fix this issue. https://github.com/adriantoine/enzyme-to-json/issues/137
<React.Memo />
instead of <Connect(CustomComponent) />
is not great indeed.
I'd like to have <React.Memo(CustomComponent) />
Thanks, 3.4.2 is back to non-breaking changes.
Output of a snapshot from a connected custom component in 3.4.0:
The output of a snapshot from the same connected custom component in 3.4.1:
A patch update shouldn't have this sort of breaking change. The utility of 3.4.0 is better than 3.4.1 as well as it conveys more information about the component.