react-async-states icon indicating copy to clipboard operation
react-async-states copied to clipboard

Make useAsyncState internals "hot"

Open incepter opened this issue 3 years ago • 0 comments

hot means for the js engine that it can be optimized.

exported useAsyncState can have configuration of different shapes: source, string, function or object. So, it will be never optimized.

useAsyncState parses the configuration to an object of the same shape which can be very hot :)

incepter avatar May 04 '22 11:05 incepter