Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

59
Views
How to find all callable function in Javascript promise object?

In google firebase auth method, I got a promise object back in userRef, in the PromiseResult, there is a function called onSnapshot, but when I call that function, I got error Uncaught (in promise) TypeError: userRef.onSnapshot is not a function

This is the code to print out the object and calling the function.

    console.log(userRef);
    userRef.onSnapshot((snapshot) => {
      console.log("in snapsot");
    });

the screenshot of the object structure for the userRef

enter image description here

Any suggestion? Thanks.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!