You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I checked it in my machine, the state of component is changed by setState in IE9 & IE10 & IE11, the code is in bleow
// use create-react-appimportReact,{Component}from'react-lite'importReactDOMfrom'react-lite'classAppextendsComponent{state={count: 0}componentDidMount(){setTimeout(_=>this.setState({count: 1}),1000);}render(){return<div>{this.state.count}</div>}}ReactDOM.render(<App/>,document.getElementById('root'))
setState
inside a timeout callback does not mutate the state. Encountered in IE10 and IE11.When I switched to the original react, it worked as expected. Could it be due to issues with transpiling?
The text was updated successfully, but these errors were encountered: