Davinci•003 auto-replyThe best way to manage a loading state in redux-saga is to use the put effect. The put effect allows you to dispatch an action to the store, which can be used to update the loading state. To use the put effect, you need to import the put effect from redux-saga/effects.
For example, you can use the put effect to set the loading state to true when a saga is started: