useEffect( () => { let allCryptoFuturesSymbols = {} getOrderRestrictions().then((result) => { let listOfSymbols = result.symbols for (let num in listOfSymbols) { let elt = listOfSymbols[num] const symbol = elt["symbol"] Object.defineProperties(allCryptoFuturesSymbols, { [symbol]: { value: symbol, enumerable: true } }); }) console.log(allCryptoFuturesSymbols) console.log(JSON.stringify(allCryptoFuturesSymbols)) }, [])El resultado del primer registro es correcto y esperado, y el segundo es un objeto vacío: {}. Si encadena un objeto definido manualmente, no hay problema, pero el objeto creado a través de este bucle for no se comporta de la misma manera.