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

No event listener when importing from other package #1

Open
cortopy opened this issue Oct 15, 2018 · 1 comment
Open

No event listener when importing from other package #1

cortopy opened this issue Oct 15, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@cortopy
Copy link

cortopy commented Oct 15, 2018

I'm having some problems using cycle-react in my own components if these are imported from other packages.

When importing the hyperscript function directly from cycle/react everything works fine. But when I import a HOC from another package, things start to not work as expected.

For what I can debug, ForwardRefs are created ok. However, no event listener is attached to the html element. In this screenshot, the element in the second button appears with no handler using react devTools.

I've created a repo that reproduces this issue using a lerna monorepo.

no-handler

@staltz
Copy link
Member

staltz commented Oct 16, 2018

Thanks for the careful report. I'm not sure what causes this yet, but I'll try to debug

@staltz staltz added the bug Something isn't working label Oct 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants