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

179
Views
await/async firebase con reaccionar nativo

Estoy tratando de mostrar console.log('here1') e ingresar la condición if cuando terminé de verificar el número de niños. Por ahora, tengo la salida:

  • aquí1 falso
  • aquí2 cierto
  • aquí1 cierto
 toggleisModal = async () => { const task = this.props.task; await firebase.database().ref("Tasks").on("child_added", async (snapshot2) => { if (snapshot2.exists()) { const countChild = await firebase.database().ref("Tasks").child(snapshot2.key).child(task.taskname); countChild.on("value", (snapshot3) => { if (snapshot3.numChildren() >= 6) { this.setState({ checkExist: true }) console.log("here2 ", this.state.checkExist) } }) } }) console.log("here1 ", this.state.checkExist); if (this.state.checkExist === true) { this.setState({ showTaskVisible: false }); } else { this.setState({ showTaskVisible: !this.state.showTaskVisible }); } };
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!