SolidJSS
SolidJSโ€ข3y agoโ€ข
1 reply
CaptainDaylight

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.
Screen_Shot_2023-04-27_at_5.28.15_PM.png
GitHub
Contribute to captDaylight/solid-web-component development by creating an account on GitHub.
GitHub - captDaylight/solid-web-component
Was this page helpful?