Skip to content
This repository was archived by the owner on Nov 9, 2024. It is now read-only.

Conversation

@atomiks
Copy link
Owner

@atomiks atomiks commented Oct 30, 2019

There was a mistake here as we weren't passing the dep in an array, rather by itself. (We need that TypeScript rewrite asap 😅)

Babel loose mode uses className.concat(dep) so that's why there is no error when using the package (i.e. the dependency array was equivalent to not being there at all - re-running every time for component children since it was concating the forwardRef object), but there's an error in the demo when using a component as a child - not sure why the transform is different there.

It also doesn't error in the tests because of the babel transform, I think.

@atomiks atomiks merged commit 0d2c20a into master Oct 30, 2019
@atomiks atomiks deleted the fix/dep branch October 30, 2019 06:08
atomiks added a commit that referenced this pull request Oct 30, 2019
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.

2 participants