Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

183
Visualizações
Propiedad del objeto dentro de indexedDB que muestra un valor, cuando se recupera muestra otro

En Chrome "Aplicación" -> IndexedDB veo el valor de propiedad de un objeto con valor "inactivo", al recuperar ese registro, la propiedad se muestra con valor "activo".

Esta es la función que hace la recuperación:

 function retrievesClientsFrom(databaseWithThisName, thisVersion, thisObjectStoreName) { var requestToOpenDatabase = indexedDB.open(databaseWithThisName, thisVersion); requestToOpenDatabase.onsuccess = function(event) { var theDatabaseObject = requestToOpenDatabase.result; //gets a transaction object var theTransactionObject = theDatabaseObject.transaction(thisObjectStoreName, "readonly"); //gets the object store with that name var theObjectStore = theTransactionObject.objectStore(thisObjectStoreName); //gets all objects inside the objectStore sent to the function var requestToGetContentOfAnObjectStore = theObjectStore.getAll(); requestToGetContentOfAnObjectStore.onsuccess = function(event) { arrayOfRetrievedClients = requestToGetContentOfAnObjectStore.result; //here I get the wrong value (I see it in chrome console). console.log("arrayOfRetrievedClients: o%",arrayOfRetrievedClients); }; }; requestToOpenDatabase.onerror = function(event) { window.alert("There was a problem reading the database: "+requestToOpenDatabase.error); }; }

No tengo absolutamente ninguna idea de qué hacer. ¿Algunas ideas?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda