Created
February 16, 2019 22:07
-
-
Save malerba118/20b8bd16f6fe73568511f5c57b84a2b2 to your computer and use it in GitHub Desktop.
react-use-database default mergeEntities customizer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// default implementation of customizer when calling db.mergeEntities(entitiesPatch) | |
((objValue, srcValue) => { | |
if (isArray(objValue) || isArray(srcValue) || isSet(objValue) || isSet(srcValue)) { | |
return srcValue | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment