SolidJSS
SolidJSโ€ข3y agoโ€ข
2 replies
JCM

`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?
Quickly discover what the solid compiler will generate from your JSX template
Was this page helpful?