Losing reactivity when importing a signal from a library that uses SolidJS
Hey 
I have a library that uses SolidJS, and a few projects that import said library.
I have the following code in one of my library's util files:
and the Vec2 class that I'm using (with all the other irrelevant methods removed, to keep the code snippet short):
The code above works as expected inside the library; When the window is resized, the signal updates, and the console.log effect gets called.
The issue I have is inside another project, that imports my library. The effects there doesn't get called after the initial render.
Here's my
And the
Any hints on why the effect inside the example app only gets called once (on load), while the one inside the library works as intended?
I have a library that uses SolidJS, and a few projects that import said library.
I have the following code in one of my library's util files:
and the Vec2 class that I'm using (with all the other irrelevant methods removed, to keep the code snippet short):
The code above works as expected inside the library; When the window is resized, the signal updates, and the console.log effect gets called.
The issue I have is inside another project, that imports my library. The effects there doesn't get called after the initial render.
Here's my
index.tsx entrypoint in the example project, it's more-or-less the default one when setting up a new SolidJS project:And the
App.tsx:Any hints on why the effect inside the example app only gets called once (on load), while the one inside the library works as intended?

