oxpa я писал года 4 назад эту фигню =) checkUpdate = (that) =>()=> { for (let i in that.mess_elements){ const el = that.mess_elements[i] if (!isEmpty(el) && checkVisible(el.refs['self'])) { console.log('going to fetch ' + i) that.props.fetchMessages([i])() } } }