Skip to content
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

fix: Make rtdb ref.push() only create local node when no value is passed #739

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

jonathanedey
Copy link
Contributor

@jonathanedey jonathanedey commented Nov 20, 2023

The optional value argument in push() can be used to provide an initial value for the child node. If no value is provided, child node will have an empty string as the default value.

This behaviour was inconsistent with the client SDKs. If no value is provided, push() should now return a reference that can be used elsewhere and should not create an empty node on the server.

@jonathanedey jonathanedey marked this pull request as ready for review November 20, 2023 21:39
@lahirumaramba lahirumaramba self-assigned this Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants