preactjs / signals

Manage state with style in every framework
https://preactjs.com/blog/introducing-signals/
MIT License
3.75k stars 91 forks source link

Signal values do not update in Remix with Vite integrated #549

Closed rhiannonbgrant closed 6 months ago

rhiannonbgrant commented 6 months ago

I have used signals everywhere in my Remix app, but when I try to integrate remix with Vite, the values stop updating. Signals are so useful, please let me know how I can fix it, or if it can be fixed.

XantreDev commented 6 months ago

Can you provide minimal reproduction?

rhiannonbgrant commented 6 months ago

Thanks so much for getting back @XantreDev., I made this repo, https://github.com/rhiannonbgrant/remix-vite-signal-debugging, it's a Remix template with Vite integrated, I installed preact/signals-react and put a test on the home page. I hope this kind of what you meant.

rhiannonbgrant commented 6 months ago

Hi there, I'm not quite sure exactly what the problem was but I've been updating vite, remix and signals and node to the latest stable versions and that seems to have fixed the problem which I'm so happy with. Thanks

XantreDev commented 6 months ago

I like when problems solves this way)

sostenesapollo commented 2 months ago

any idea ?