Skip to content

Subsequent calls to list is emitting multiple values #501

@VladimirMakaev

Description

@VladimirMakaev

I'm seeing very strange behavior when using angularfire2.

The application is calling

  1. af.database.list(url) which correctly emits item1, item2, item3
  2. After subscription to the observable successfully emits the values mentioned above. A subsequent call to af.database.list(url) emits the following values: [], [item1], [item1, item2], [item1, item2, item3]

The debugging of the firebase_list_factory.js shows that the problem that in the first case "value" occurs after "child_added". In the second case "value" occurs before "child_added" which breaks the observable logic

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions