`reconcile` object to array mutation
I have a data structure coming as JSON from the server that is put in a store. When a new state from server comes,
reconcile
is used to update the store in order to keep fine grained updates.
So far so good, however reconcile
doesn't do the expected thing when I have an object in the old state, which needs to be an array in the new state.
Here is minimal reproducible example:
https://playground.solidjs.com/anonymous/ab7db9d8-47b6-4fd7-8f0b-fda541030b92
Is there a way to fix this behaviour with the existing reconcile. Should I report a bug?Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
2 Replies
No response hopefully means that I'm not doing anything obviously wrong.
Given it looks like a bug to me, I went ahead and filed a bug report:
https://github.com/solidjs/solid/issues/1973
GitHub
reconcile
problem when array should replace an object · Issue #19...Describe the bug I have a data structure coming as JSON from the server that is put in a store. When a new state from server comes, reconcile is used to update the store in order to keep fine grain...
ye seems like a bug to me!