Reconcile a store, but ignore properties if they are undefined in the data source #1995
Tronikelis
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My problem
I am syncing my store from an external api that is not guaranteed to always return all properties, if it does not return all properties the reconcile sets them as undefined, no matter if it is
merge: true / false
(I still don't really get the difference, but this doesnt matter now). So the store hasundefined
and theType
is not defined as undefined, so my app breaksCurrent "workaround"
Proposed solution
Maybe a new option
ignoreUndefined
keepDefault
in the reconcile?Beta Was this translation helpful? Give feedback.
All reactions