react-autowhatever icon indicating copy to clipboard operation
react-autowhatever copied to clipboard

Removes deprecated lifecyle method componentWillReceiveProps

Open jimnanney opened this issue 5 years ago • 2 comments

This pull request removes the componentWillReceiveProps deprecated lifecycle method and moves the computes items into the render method. I stored previous prop values that would trigger recomputing on the class and only recompute if they differ.

Addresses [#50]

jimnanney avatar Aug 29 '19 16:08 jimnanney

Can someone please look at this? Thanks!

gdonald avatar Oct 09 '19 20:10 gdonald

If this works properly, this looks like it would be a more complete fix than what was in https://github.com/moroshko/react-autosuggest/pull/681 .

benrhere avatar Jan 28 '20 15:01 benrhere