New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
solid-js reactivity not working #701
Comments
Hi @KarlitosD, it looks like you're in a server environment or at least the provided stackblitz is running a nodejs environment. It seems that solid-js doesn't run effects on server side. To get around this, you can import You just have to adjust your import from import { createEffect } from 'solid-js'; to import { createEffect } from 'solid-js/dist/solid'; |
But it also seem that there is an issue with imports inside of |
The issue with the imports is resolved in |
Thanks for the help 😀 I didn't realize that solid on the server was not running effects. I will try to implement it again in my project with the latest version, again thanks for your quick response. |
You're welcome! Thanks for pointing me in the direction to find the imports issue in |
Hello me again 😅, related to this it keeps happening to me in a vite project, here I leave the stackblitz with the updated dependencies. Sorry for the inconvenience again 😓 |
It seems that there is an error in stackblitz while setting up dependencies. I'm not sure if this is related to signaldb |
@KarlitosD I just downloaded the project locally to try it out. It seems to work properly without stackblitz. Can you confirm this? |
I was testing signaldb in my solid-js project, but I noticed that adding an element to the collection triggered the effect.
Testing the same example but with vue and @maverick-js/signals works as expected.
Then check in the documentation to make a custom adapter and add some console.log. It turns out that it never calls the “create” function.
I don't know what could be happening, I also leave a link to stackblitz you can try to replicate my experience.
The text was updated successfully, but these errors were encountered: