Skip to content

saga argument must be a Generator function! error #69

@seanmalek

Description

@seanmalek

I have code that was working fine until I upgrade the okta-react to 3.0.1 and now I am getting this weird error runSaga(options, saga, ...args): saga argument must be a Generator function!

  10 | export const store = createStore(rootReducer, getInitialState(), composeWithDevTools(applyMiddleware(sagaMiddleware)));
  11 | 
> 12 | sagaMiddleware.run(rootSaga);
     |                ^
  and my root saga is 

export const rootSaga = function* root() {
yield all([
fork(watchNewGeneratedNetworkRequestStart),
fork(watchGetRefsStartSaga),
fork(watchCommercialOrderSearch),
fork(watchSessionNetworkSaga),
fork(watchMissingCopySearch),
fork(watchMissingCopyRefSaga),
fork(watchAddInstruction),
fork(watchMediaSearches),
fork(watchLockSagas),
fork(watchSharedCommercialOrderSearch),
fork(watchMultiOrderInstructionSagas),
fork(watchLogPageSagas),
]);
};

any idea why I started having this errors after the update?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions