Closed Gongreg closed 7 months ago
Hello. Thank you for quick replies on previous issues! We've noticed one more issue:
import { create } from 'mutative'; const baseState = { array: [ {x: 1} ] }; const state = create(baseState, (draft) => { draft.array = draft.array.filter(o => o.x !== 1) }); console.log(state.array) // expected [], received [undefined]
This issue seems to happen if filtering is done on array that has objects inside, if it has numbers in it works correctly.
hi @Gongreg ,
I just realized that too. I've fixed it, v0.7.1 has been released.
Wow, blazing fast!
Confirmed that the issue is fixed.
Hello. Thank you for quick replies on previous issues! We've noticed one more issue:
This issue seems to happen if filtering is done on array that has objects inside, if it has numbers in it works correctly.