Skip to content

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

Open
jonathanedey wants to merge 8 commits intomainfrom
je-rtdb-push
Open

fix: Make rtdb ref.push() only create local node when no value is passed#739
jonathanedey wants to merge 8 commits intomainfrom
je-rtdb-push

Conversation

@jonathanedey
Copy link
Collaborator

@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