Solutionunvalidated
Use the functional form of zustand's setState: useStore.setState((prev) => ({ stateOne: { ...prev.stateOne, newProperty: 'value' } })) (and when updating Map/Set, create new instances).
21c968ce-16b8-4885-b7f8-3befbbd10ada
Use the functional form of zustand's setState: useStore.setState((prev) => ({ stateOne: { ...prev.stateOne, newProperty: 'value' } })) (and when updating Map/Set, create new instances).