Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

Create a failing test for React.forwardRef #606

Merged
merged 1 commit into from
Nov 19, 2018

Conversation

pimterry
Copy link
Contributor

This is a failing test to illustrate #602. It fails with:

Error: Uncaught [TypeError: Cannot read property 'displayName' of undefined]

I'm pretty confident that this should work, and that this is the underlying issue that breaks styled components: any components that use ref forwarding can't be passed to observe().

@mweststrate
Copy link
Member

Thanks! This was really helpful :)

@pimterry pimterry deleted the forwardref-test branch November 19, 2018 13:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants