n9
n9
@coolsoftwaretyler I checked the source code. Patches are generated using MobX's `observe` function: https://github.com/mobxjs/mobx-state-tree/blob/05c6a3e70cff29854d574fab0ddf99cf4e7d6f9d/src/types/complex-types/map.ts#L309 https://github.com/mobxjs/mobx-state-tree/blob/05c6a3e70cff29854d574fab0ddf99cf4e7d6f9d/src/types/complex-types/map.ts#L387-L424 I found out how to get the snapshot with `observe` function: - not `getSnapshot(ch.newValue)` -...
P.S. Why is `change.oldValue.die()` only called on `"delete"` and not on `"update"` (in `MapType.didChange`)?
The commit (for reference): https://github.com/mobxjs/mobx-state-tree/commit/fd6d83282245dc46802a64a5a81e8427935f4bb6