qwik icon indicating copy to clipboard operation
qwik copied to clipboard

Array change in store does not cause re-render

Open literalpie opened this issue 1 year ago • 3 comments

Qwik Version

0.13.3

Operating System (or Browser)

Safari and Chrome

Node Version (if applicable)

No response

Which component is affected?

Qwik Runtime

Expected Behaviour

If a store is initialized with 'recursive', and you update an array of objects with a new array that has completely different items, that change should be reflected.

Actual Behaviour

Changes are not reflected in child components, but they are reflected in the parent component.

Additional Information

I tried setting the array by spreading state.someArray = [...newValues];, but that didn't work. My current workaround is to loop through each item in the array and set the values.

Reproduction StackBlitz

literalpie avatar Nov 19 '22 16:11 literalpie