Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

133
Vistas
withObservables with await

I'm storing some session details using AsyncStorage and trying to use one of those stored session details in the withObservables as a part of the query. For example, assume that getCurrentFruitID is an async helper method to retrieve the fruitID from AsyncStorage. The code I am attempting to write looks like this:

compose(
  withDatabase,
 from(() => )
  withObservables([], async ({database}) => ({
    fruit: database
        .get('fruits`)
        .query(Q.where('fruit_id', await getCurrentFruitID()),
  })),
)(Component)

but this results in an undefined is not an object error. I have taken a couple cracks at using the from function in RxJS (https://rxjs-dev.firebaseapp.com/api/index/function/from) as suggested by another person in the official forums but have had no luck. Any help would be much appreciated!

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda