Open eladkarakuli opened 8 years ago
.once
method like this? https://github.com/firebase/firebase-util/blob/d3a5b7d95/test/e2e/NormalizedCollection.e2e.js#L89
if that, i think you should change to this :)
sync.fiber(function() {
var defer = sync.defer();
spotsRef.once('value',
function(s) { defer(null, s); }, // success callback
defer); // failure callback
var ref = sync.await();
console.log('ref', ref);
return ref;
});
Thanks @d3m3vilurr! that worked.
Close this?
@bradvogel Yea, this issue is not a bug. :) But only can close @alexeypetrushin or @eladkarakuli
I'm trying to wrap and sync Firebase query methods as follows
And I get this error:
API for Firebase [.once]() method