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

182
Views
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
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!