react-autowhatever
react-autowhatever copied to clipboard
Removes deprecated lifecyle method componentWillReceiveProps
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]
Can someone please look at this? Thanks!
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 .