Losing Reactivity When I Import Solid Component in Lib
I made a reproduction of a problem I'm having when I import components as a lib from another package in my monorepo.
https://github.com/captDaylight/solid-web-component/tree/main
There are two packages,
app
and solid-components
. I'm trying to import the latter (which has two components Counter
and Dialog
) into app
.
The Counter
component works as expected, all of the interaction is happening inside of the component. However, the Dialog
component isn't reacting to the open()
signal that I'm passing to it... or rather it's setting to the initial value but not reacting when I use setOpen(true)
.
To be sure that the code I'm using is correct, I have the exact same App.tsx
logic in the solid-components
. In there, everything is working as expected.GitHub
GitHub - captDaylight/solid-web-component
Contribute to captDaylight/solid-web-component development by creating an account on GitHub.
![](https://utfs.io/f/c6bbfb6e-94bf-4cdc-8944-1fad65a52191-uouw16.28.15_PM.png)
1 Reply
I ended up getting a response in github, so linking back to that in case anyone else runs into this!
https://github.com/solidjs/solid/discussions/1706
GitHub
Losing Reactivity When I Import Solid Components in Lib · solidjs s...
I made a reproduction of a problem I'm having when I import components as a lib from another package in my monorepo. https://github.com/captDaylight/solid-web-component There are two packages, ...