import { all } from 'redux-saga/effects'; export const workers: Record = {}; export const watchers: Record = {}; export default function* saga() { yield all(Object.values(watchers).map((watcher) => watcher())); }