We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to wrap and sync Firebase query methods as follows
sync.fiber(function() { var ref = sync.await(spotsRef.once('value', sync.defer())); console.log("ref", ref); return ref; });
And I get this error:
/home/my-app/node_modules/synchronize/sync.js:111 fiber.throwInto(err) ^ [object Object]
API for Firebase .once method
The text was updated successfully, but these errors were encountered:
.once method like this? https://github.com/firebase/firebase-util/blob/d3a5b7d95/test/e2e/NormalizedCollection.e2e.js#L89
.once
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; });
Sorry, something went wrong.
Thanks @d3m3vilurr! that worked.
Close this?
@bradvogel Yea, this issue is not a bug. :) But only can close @alexeyPetrushin or @eladkarakuli
No branches or pull requests
I'm trying to wrap and sync Firebase query methods as follows
And I get this error:
API for Firebase .once method
The text was updated successfully, but these errors were encountered: