A fast, low memory, transactional, index & query enabled NoSQL database engine and server for node.js and browser with realtime data change notifications
MIT License
492
stars
27
forks
source link
Listening to value data event duplicates parts of mutated event ref path #105
If listening to the value event the path will be something like recipes/recipe_id/recipe_id/name. The target in mutations event also suffers the same problem.
As far as I can tell its just the value event that does this. Everything else, including notify_value, doesn't cause problems.
Also on an unrelated note, but probably not worth opening a second issue for, is the forEach and child methods of MutationsDataSnapshot both call this.val() without passing false, so it warns you to use the methods you already are using.
If listening to the
value
event the path will be something likerecipes/recipe_id/recipe_id/name
. The target inmutations
event also suffers the same problem. As far as I can tell its just thevalue
event that does this. Everything else, includingnotify_value
, doesn't cause problems.Also on an unrelated note, but probably not worth opening a second issue for, is the
forEach
andchild
methods ofMutationsDataSnapshot
both callthis.val()
without passing false, so it warns you to use the methods you already are using.