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

181
Vistas
Get UID that is outside profile on Firebase

I have been doing this for an hour. i want to get the uid for make a table, but thats not working because the UID is outside profile. this is my database Image of my DB. Image of my Console

So far I have tried this

const [data, setData] = useState({});

  useEffect(() => {
    firebase
      .database()
      .ref("user")
      .on("value", (snapshot) => {
        snapshot.forEach((child) => {
          const uid = child.key;
          firebase
            .database()
            .ref("user/" + uid + "/Profil")
            .on("value", (snapchild) => {
              snapchild.forEach((snapshotchild) => {
                if (snapshotchild.val() !== null) {
                  setData({ ...snapshotchild.val() });
                } else {
                  setData({});

and like this my table

<tbody>
        {Object.keys(data).map((id, index) => {
            return (
              <tr>
                <th scope="row">{index + 1}</th>
                <td>{data[id].fullName}</td>
                <td>

Where might I be going wrong.

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