In almost all my sagas I call a selector which gets the organizationId from the state, like so:
const organizationId = yield select(getOrganizationId);
My rootSaga is set up like so:
export function* rootSaga() {
yield all([
fork(someSaga),
fork(someOtherSaga),
]);
}
In this example, both someSaga and someOtherSaga would call getOrganizationId.
What I would want instead is to make the select in rootSaga, and pass down the value to all forked sagas. The value I pass down would have to be updated as the selector's result updates.
How can I achieve this?