Skip to content

Don't drop empty objects during merge #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 19, 2018

Conversation

schmidt-sebastian
Copy link
Contributor

We currently drop empty objects when during set({merge: true}) since we only add leaf nodes to the field mask. We need to consider an empty object a leaf node.

Port of firebase/firebase-js-sdk#1202

@schmidt-sebastian
Copy link
Contributor Author

/test connected-check

@schmidt-sebastian schmidt-sebastian merged commit f1a2d0a into master Sep 19, 2018
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt-emptyobject branch October 15, 2018 17:25
@firebase firebase locked and limited conversation to collaborators Oct 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants