itinance / redux-saga-location

Geo-Location-support for redux-saga
MIT License
22 stars 8 forks source link

New middleware action #1

Closed luizguilhermefr closed 7 years ago

luizguilhermefr commented 7 years ago

In order to control incoming requests, it is desirable to have a "fetching" attribute in the redux state. This way, we could display and remove loading spinners properly.

This PR proposes to have an action before setting the payload state: REDUX_SAGA_LOCATION_ACTION_REQUEST. So, before the success/error actions are dispatched, we have the entire control via fetching param.

itinance commented 7 years ago

Thank you very much! Very usefully contribution!