Skip to content

fix: add displayNames to generated components - #731

Merged
theKashey merged 1 commit into
gregberge:mainfrom
forivall:fix/display-names
Mar 31, 2021
Merged

theKashey merged 1 commit into
gregberge:mainfrom
forivall:fix/display-names

Conversation

@forivall

Copy link
Copy Markdown
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
Copy Markdown
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