I a have post list and I am trying to call an action inside of constructor or componentDidMount for each post. But somehow when I send a new message constructor and componen
React constructor is called twice in strict mode. https://stackoverflow.com/a/61443443/6014725
This is not a bug, but on purpose behavior to ensure that the constructor is pure. https://github.com/facebook/react/issues/12856#issuecomment-613145789
Learn more with https://reactjs.org/docs/strict-mode.html