Answer the question
In order to leave comments, you need to log in
Redux how to read nested object property?
good afternoon, there is an object of the view
{
"id": 6,
"leadcreatedate": "0001-01-01T00:00:00Z",
"leadmodifydate": "0001-01-01T00:00:00Z",
"utm": {
"uid": {
"Int64": 1,
"Valid": true
},
"domainsource": {
"String": "http://site.ru",
"Valid": true
},
"urlsource": {
"String": "http://site.ru",
"Valid": true
}
}
}
Answer the question
In order to leave comments, you need to log in
Радиатор видео горячий - держать палец невозможноЭто перегрев — чистите вентилятор, уберите программы "оптимизации" охлаждения или соответствующие настройки в драйвере (BIOS видео тоже) приведите в состояние по-умолчанию..
Perhaps you are trying to read it before the data has arrived (on the first render), you can make a condition - if such an object exists - output the data.
This happens when you make a request to the server in the componentDidMount method, the render has already worked, and you only requested the data after that. Then the data will be received, the props will be updated, the second render will be called already with the data.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question