DH
Losing reactivity when importing a signal from a library that uses SolidJS
@Emily here's a minimally reproducable version:
https://codesandbox.io/p/devbox/practical-vaughan-lwjs4f
the main directory is the library containing the screen size logic
the
example/
directory contains the currently running project
first text is the imported signal
2nd line is a component that does the same, but inside the library16 replies
Losing reactivity when importing a signal from a library that uses SolidJS
Yes, but you have all 3 files in the same project. It works fine if everything is in a single project, but that's not the case for me.
In my case, I have the screen utils and Vec2 class in 1 library project, and I have that installed on a 2nd example app (the index.tsx and Apps.tsx files are here), which is where the problem occurs.
16 replies
Losing reactivity when importing a signal from a library that uses SolidJS
The full repo is available here, at least for the library. The example app I'm using is not on the repo:
https://github.com/LordDeatHunter/nodeflow
16 replies