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

Refactor usage of state

Open jamesplease opened this issue 7 years ago • 0 comments

There are a few situations in React Request where the lib is using component state outside of render or event callbacks.

This needs to be refactored to be accessed like so:

setState(prevState => {});

jamesplease avatar May 28 '18 00:05 jamesplease