alexamy
alexamy
SSolidJS
Created by alexamy on 7/3/2024 in #support
Granular update of store array doesn't trigger effects depending on the whole array
It is the most cryptic part for me - why if I change individual point in the array, effect that depends on this individual point is not fired.
26 replies
SSolidJS
Created by alexamy on 7/3/2024 in #support
Granular update of store array doesn't trigger effects depending on the whole array
It is the same code as in https://stackblitz.com/edit/solidjs-store-array-1?file=src%2FApp.tsx, and as in my local setup, and this effect is not triggered there, only in solidjs playground.
26 replies
SSolidJS
Created by alexamy on 7/3/2024 in #support
Granular update of store array doesn't trigger effects depending on the whole array
Funny that individual points effect is working in SolidJS playround: https://playground.solidjs.com/anonymous/6e486319-8488-4651-82d2-15a7602e7afa
26 replies
SSolidJS
Created by alexamy on 7/3/2024 in #support
Granular update of store array doesn't trigger effects depending on the whole array
Ok, thanks!
26 replies
SSolidJS
Created by alexamy on 7/3/2024 in #support
Granular update of store array doesn't trigger effects depending on the whole array
@Alex Lohr It doesn't seem to work. Effects are not fired. https://stackblitz.com/edit/solidjs-store-array-1-acf9yv?file=src%2FApp.tsx
26 replies
SSolidJS
Created by alexamy on 7/3/2024 in #support
Granular update of store array doesn't trigger effects depending on the whole array
I think I understand why effect based on whole array is not fired - because the reference to whole array stays the same. But why effect for each element is not fired too? Are the elements not signals?
26 replies
SSolidJS
Created by alexamy on 2/21/2024 in #support
React is not defined when using custom server directory for Vite
The workaround is to serve the root directory with vite serve . (or simply vite) and open the http://localhost:5173/dev/index.html.
2 replies