[GH-ISSUE #200] value event not returning existing data when path contains wildcards/variables #92

Open
opened 2026-05-23 08:30:14 -06:00 by gitea-mirror · 2 comments
Owner

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

Originally assigned to: @appy-one on GitHub.

Happy New Year! Here is to another great year for you and AceBase! Many thanks to you!

It appears to me that the 'value' event is not returning existing data as requested when the path contains a wildcard/variable.

If I'm correct, can support be added for this? Or if nothing else maybe make a note in the documentation?

db.ref('users/$user/post/$post')
    .on('value', true)
    .subscribe(snap => {
// receives changes, but not existing data
});
Originally created by @donl on GitHub (Jan 2, 2023). Original GitHub issue: https://github.com/appy-one/acebase/issues/200 Originally assigned to: @appy-one on GitHub. Happy New Year! Here is to another great year for you and AceBase! Many thanks to you! It appears to me that the 'value' event is not returning existing data as requested when the path contains a wildcard/variable. If I'm correct, can support be added for this? Or if nothing else maybe make a note in the documentation? ```js db.ref('users/$user/post/$post') .on('value', true) .subscribe(snap => { // receives changes, but not existing data }); ```
gitea-mirror added the
feature request
label 2026-05-23 08:30:14 -06:00
Author
Owner

@appy-one commented on GitHub (Jan 2, 2023):

Happy new year!
Wildcard paths are only available in queries at the moment, but I'll take a look at adding support for events too 👍🏼

<!-- gh-comment-id:1369248991 --> @appy-one commented on GitHub (Jan 2, 2023): Happy new year! Wildcard paths are only available in queries at the moment, but I'll take a look at adding support for events too 👍🏼
Author
Owner

@donl commented on GitHub (Jan 3, 2023):

Oh and look! Happy #200!

<!-- gh-comment-id:1369287999 --> @donl commented on GitHub (Jan 3, 2023): Oh and look! Happy #200!
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#92
No description provided.