Skip to content

Child events on arrays are fired on incorrect paths #18

@appy-one

Description

@appy-one

If child events are bound to a path that is an array, the references in the callbacks will contain the wrong child paths

Example:

// Add subscription:
db.ref('chats/chat1/members_array').on('child_added', ref => {
   console.log(ref.path); // "chats/chat1/members_array/2" instead of "chats/chat1/members_array[2]"
});

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions