Adds test case for desired behavior of babel plugin for user-space HOCs #43
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I discovered that when defining and using my own higher-order component in order to have a default
LoadingComponent
, the babel plugin does not work. It fails with aTypeError
,Cannot read property 'name' of undefined
.This PR adds a failing test case demonstrating the behavior, and a snapshot of what I would expect the outcome to be. I understand the changes to the plugin necessary to produce that outcome would be pretty significant. If it's not possible, a statement should be added to the README about it not being a supported use case. You wouldn't think so right now, with the documentation of how to not repeat coming right after a recommendation to use the Babel plugin.