I came across a React application that contains ~200 sagas, each watching for several patterns (Action types). I was thinking if having this amount of sagas impacts the app in any negative way, whether it's performance or loading times.
Why I think so? Each saga is listening for many patterns throughout the lifetime of the application, so are more the event listeners, but they never got removed from the app until it is closed.
If there are issues with having lots of sagas, then how the enterprise/big apps handling this situation, which might have more sagas than me. I know there is a way of loading sagas dynamically based on the requirement, but not sure if that's the best solution is.
The root saga looks like this
function * rootSaga () {
yield all(sagas.map(saga => fork(saga))) // sagas = array of 200 sagas
}