react icon indicating copy to clipboard operation
react copied to clipboard

No event listener when importing from other package

Open cortopy opened this issue 7 years ago • 1 comments

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

cortopy avatar Oct 15 '18 21:10 cortopy

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

staltz avatar Oct 16 '18 09:10 staltz