Reactive in case of dynamic data

Hey peeps, I have an object where it can be any random json. Something like this, https://playground.solidjs.com/anonymous/8670f306-cea1-40d4-9a84-3dbc2caa305f It looks like Solid will lose the object reactivity when changing from array to object, vice versa. I wonder if there is a way to overcome this?
Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
2 Replies
thetarnav
thetarnav2y ago
Remember that when setting an object, the top most object gets merged So here I think you’re only setting “xyz” property Maybe this could be considered a bug, when the current object has a different prototype
phungleson
phunglesonOP2y ago
Yeah so I was setting a property to an array?
Want results from more Discord servers?
Add your server