SolidJSS
SolidJSโ€ข3mo agoโ€ข
10 replies
Dastrus

Reconcile array of nested objects

Hi. I'm having an issue where I do an api call and I get back facets and whenever you select a value for a facet you get another list of facets back. Now I'm using reconcile to update the store and it mostly works. However, when I get a new list with a new facet in front and after, in my case the Category facet, it rerenders the entire category facet. I've setup some test data here to check it out: https://playground.solidjs.com/anonymous/59500506-e221-4e9a-9d2b-70a3e8fc60d7

So even though I reconcile based on the "key" key, it still sees it as a different object because of it's placement in the array or something? Anyone know how to fix this or is it a bug of some sort?
Quickly discover what the solid compiler will generate from your JSX template
Was this page helpful?