ConrabOpto / mst-query

Query library for mobx-state-tree
MIT License
116 stars 8 forks source link

fix: allow partial data when merge #23

Closed benjaminkwokhuen closed 2 years ago

benjaminkwokhuen commented 2 years ago

Fix #22

k-ode commented 2 years ago

Thanks for the pr (and for writing a test)!

This will swallow all errors, which I don't think is what you want most of the time. It's probably easier to just remove this check from getRealTypeFromObject in utils.ts

benjaminkwokhuen commented 2 years ago

@k-ode Fixed. It'll return null if the property does not exist.

k-ode commented 2 years ago

Released as 1.0.8