Generic redux loading state, selectors and utils for sending requests and handling loading/error states. Library supports redux-toolkit and other class redux approaches.
Supported loading states:
-
pristine
- nothing has happened to the state slice -
loading
- loading started -
failed
- loading failed -
success
- loading was successful
Helper reducer functions that will change loading state.
-
isPristine
- flag showing that slice is in initial state and no requests were made. -
isLoading
- flag showing that request is ongoing. -
error
- string, storing last request error message
This library is licensed under The MIT License.