react-async-states
react-async-states copied to clipboard
Make useAsyncState internals "hot"
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 :)