Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

Option not to set displayName on HOCs #720

Open
StevePotter opened this issue Jul 31, 2018 · 0 comments
Open

Option not to set displayName on HOCs #720

StevePotter opened this issue Jul 31, 2018 · 0 comments

Comments

@StevePotter
Copy link

We switch to withProps from doing it the old fashioned way with a custom component. But all our Jest snapshots changed because withProps added a displayName that we didn't need. I looked at the source and the library adds the displayName for process.env.NODE_ENV !== 'production' - code here

I suggest an option to turn this off, rather than checking env variables. This way we could avoid modifying our snapshots when adding recompose helpers. If anyone likes this idea, I can submit a PR.

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

No branches or pull requests

1 participant