[GH-ISSUE #2] Null property values in event callbacks #3

Closed
opened 2026-05-23 08:25:01 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @appy-one on GitHub (Jan 28, 2021).
Original GitHub issue: https://github.com/appy-one/acebase/issues/2

Originally assigned to: @appy-one on GitHub.

When creating nodes that have properties with null values, events are triggered with the same objects, including the null property values.

Example:

const ref = db.ref('users')
ref.on('child_added', snap => {
    const user = snap.val();
    console.log(user.address); // null (expected: undefined)
});
ref.push({ name: 'Ewout', address: null });

null valued properties should be stripped from the objects for event callbacks

Originally created by @appy-one on GitHub (Jan 28, 2021). Original GitHub issue: https://github.com/appy-one/acebase/issues/2 Originally assigned to: @appy-one on GitHub. When creating nodes that have properties with null values, events are triggered with the same objects, including the null property values. Example: ```javascript const ref = db.ref('users') ref.on('child_added', snap => { const user = snap.val(); console.log(user.address); // null (expected: undefined) }); ref.push({ name: 'Ewout', address: null }); ``` null valued properties should be stripped from the objects for event callbacks
gitea-mirror 2026-05-23 08:25:01 -06:00
  • closed this issue
  • added the
    invalid
    label
Author
Owner

@appy-one commented on GitHub (Feb 1, 2021):

Fixed in v1.0.2

<!-- gh-comment-id:771210882 --> @appy-one commented on GitHub (Feb 1, 2021): Fixed in v1.0.2
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/acebase#3
No description provided.