In React Native, I found that componentDidUpdate() was being called over and over, so I tried to log prevProps for the first 20 iterations in order to get some insight into what might be changing. I used this code:
var flag = 0;
componentDidUpdate = async (prevProps) => {
if (flag < 20) {
console.log(prevProps);
console.log(this.props);
}
flag++;
}
This does log prevProps and this.props for the first 20 iterations, but when I try to expand the objects in Chrome Devtools, they won't expand. See attached image: it shows the last four console.logs, and in the last two I clicked the lefthand arrow button to expand the object
Does anyone know why I can't expand these?