Skip to content
Harry Moreno edited this page Apr 29, 2016 · 2 revisions

Troubleshooting

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.