import { all } from 'redux-saga/effects';
import { fetchDataWatches } from 'app/redux/FetchDataSaga';
import { marketWatches } from 'app/redux/MarketSaga';
import { sharedWatches } from 'app/redux/SagaShared';
import { userWatches } from 'app/redux/UserSaga';
import { authWatches } from 'app/redux/AuthSaga';
import { communityWatches } from 'app/redux/CommunitySaga';
import { transactionWatches } from 'app/redux/TransactionSaga';
import { proposalWatches } from 'app/redux/ProposalSaga';

export default function* rootSaga() {
    yield all([
        ...userWatches, // keep first to remove keys early when a page change happens
        ...fetchDataWatches,
        ...sharedWatches,
        ...authWatches,
        ...transactionWatches,
        ...marketWatches,
        ...proposalWatches,
        ...communityWatches,
    ]);
}
