Are store reactive?
It consoles several time at rendering, but when modifying the values no more logs
12 Replies
I reviewed the doc https://docs.solidjs.com/concepts/stores#accessing-store-values
I have a repro here https://stackblitz.com/edit/solidjs-templates-qaqznn?file=src%2FApp.tsx
it shows when adding or removing an element, not when editing the content
Mb
.at
is not reactive? params.data[0]
should work.to be honest I was expectinghoping this to log:
That wouldn't be finegrained
*was hoping
There is a deep tracking utility in solid-primitives
Iirc
createMutable?
Solid Primitives
A library of high-quality primitives that extend SolidJS reactivity
I will have a look thanks
i am wondering though what is the purpose of stores if not tracking nested info
They are tracking nested info, but only the leaves, not the branches.
Otherwise
createEffect(() => store[0])
would also be called when store[1]
changesok it makes sense