-
Notifications
You must be signed in to change notification settings - Fork 3
Troubleshooting
Harry Moreno edited this page Apr 29, 2016
·
2 revisions
Warning: setState(...): Cannot update during an existing state transition (such as within render
). Render methods should be a pure function of props and state.
You are probably calling assign()
inside a component's render
method or functions like mapStateToProps
or mapDispatchToProps
. Redux-namespace calls setState
under the hood so calling assign
within render
, shouldComponentUpdate
or componentDidUpdate
will enter an infinite loop. You should instead assign within event handlers like onClick
. See Component#setState for more info.