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

fix: add displayNames to generated components #731

Merged
merged 1 commit into from
Mar 31, 2021

Conversation

forivall
Copy link
Contributor

Fixes #727

Summary

Adding displayNames to the generated loadable components makes them identifiable in react devtools.

Test plan

Acceptance testing: Load one of the examples in a browser with react-devtools, make sure that the loadable wrappers dont just say "Anonymous"

Unit testing: just make sure that displayName is set on generated components.

@theKashey theKashey merged commit b640c82 into gregberge:main Mar 31, 2021
@theKashey
Copy link
Collaborator

Thank you for the contribution. I would try to handle other opened PRs and release an update after easter.

fivethreeo pushed a commit to fivethreeo/loadable-components that referenced this pull request Nov 16, 2022
Co-authored-by: Emily Marigold Klassen <forivall@users.noreply.github.com>
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.

Add displayName to Loadable and WithChunkExtractor based components
2 participants