paint-brush
Evil things you do with redux — dispatch in updating lifecycle methodsby@ctlevi
33,984 reads
33,984 reads

Evil things you do with redux — dispatch in updating lifecycle methods

by Chris Tate4mJuly 22nd, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In the code base I work on, we are doing an evil thing. Something that shouldn’t be done. We are making dispatch calls in <a href="https://facebook.github.io/react/docs/react-component.html#updating" target="_blank">React lifecycle methods</a> such as componentWillReceiveProps, componentWillUpdate, and componentDidUpdate.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Evil things you do with redux — dispatch in updating lifecycle methods
Chris Tate HackerNoon profile picture
Chris Tate

Chris Tate

@ctlevi

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite