acebase icon indicating copy to clipboard operation
acebase copied to clipboard

value event not returning existing data when path contains wildcards/variables

Open donl opened this issue 2 years ago • 2 comments

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
});

donl avatar Jan 02 '23 15:01 donl

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 👍🏼

appy-one avatar Jan 02 '23 22:01 appy-one

Oh and look! Happy #200!

donl avatar Jan 03 '23 00:01 donl