Reactivity in single table cell from memoized data
[Moving from this thread (Reactivity in single cell in nested For tags) since this is a separate question]
Question: How do I do some transformation/aggregation on store data before displaying it in a tabular format, when I want only a single cell to update?
For example, in https://stackblitz.com/edit/solidjs-templates-inkran?file=src%2FApp.tsx , I aggregate over each of the keys. With a createMemo and some use of prev, I can get just a single row to update, but would ideally just update a single cell. (My understanding is that in this case, because createMemo returns a Signal (not a Store), there isn't a good way to listen for nested values, but I'm not sure about that...)
If I have my
The only other thing I can think of is to create a separate store that I then update in separate createComputed or something like that, but that feels a bit awkward...
What am I still missing here?
Question: How do I do some transformation/aggregation on store data before displaying it in a tabular format, when I want only a single cell to update?
For example, in https://stackblitz.com/edit/solidjs-templates-inkran?file=src%2FApp.tsx , I aggregate over each of the keys. With a createMemo and some use of prev, I can get just a single row to update, but would ideally just update a single cell. (My understanding is that in this case, because createMemo returns a Signal (not a Store), there isn't a good way to listen for nested values, but I'm not sure about that...)
If I have my
createMemo update prev in place, it seems that For/Index doesn't know that the update has happened (which makes sense), but if I create a new object for that row, even if a value hasn't changed for that index, it still updates anyway (in this case, the label "B"). The only other thing I can think of is to create a separate store that I then update in separate createComputed or something like that, but that feels a bit awkward...
What am I still missing here?
