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

151
Views
Los datos de caché sin conexión de Firestore no están completamente sincronizados con la nube

Estoy haciendo alrededor de 100 escrituras en Firestore sin conexión. Pero después de conectarme a Internet, veo que faltan algunos de mis datos en la nube. Sin embargo, no hay errores en el proceso de escritura. Si hago lo mismo en línea, todos los datos se sincronizan con la nube.

A continuación se muestra el código que estoy intentando en modo fuera de línea. Cada función tiene alrededor de 10 iteraciones. Hay 10 funciones ejecutándose una tras otra.

 const updateCities = async (cities) => { for (const city of cities) { try { const firebaseCity = await firestore().collection('cities').doc(city.id).get(); await firebaseCity.update(city); } catch (error) { console.log(error); } } } const updateUsers = async (users) => { for (const user of users) { try { const firebaseUser = await firestore().collection('users').doc(user.id).get(); await firebaseUser.update(user); } catch (error) { console.log(error); } } }

¿Hay alguna limitación en las funcionalidades de Firebase o estoy haciendo algo mal?

about 4 years ago · Santiago Gelvez
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!