Skip to content

onChildAdded events not working in Database v9.8.4 SDK #6416

@marcgallego

Description

@marcgallego

Describe your environment

  • Operating System version: macOS 12.4
  • Browser version: Chrome 103
  • Firebase SDK version: 9.8.4
  • Firebase Product: database

Describe the problem

After upgrading to version 9.8.4, onChildAdded events do not fire.

Steps to reproduce:

Update to version 9.8.4, without changing the source code.

Relevant Code:

  id.then((id) => {
    ref = ref(db, `path/${id}/other_path}`)
    onChildAdded(query(ref, limitToLast(1)), (snapshot) => {
      [...]
    }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions