Pernett98 / example-app-redux-middlewares

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PoC - Redux Middlewares (redux-sagas, redux-thunk, redux-observable)

This is a proof of concept using different middlewares to handle async tasks.

In order to change the middleware you need to search this comment //TODO: change the middleware to use it and change it manually e.g:

src/store/index.ts

export const store = createStore(
  rootReducer,
  {},
  composeEnhancers(
    applyMiddleware(
      //TODO: change the middleware to use it
      // thunk.withExtraArgument(apis),
      epicMiddleware,
      // sagaMiddleware,
    ),
  ),
)
//TODO: change the middleware to use it
// sagaMiddleware.run(rootSaga)
runEpicMiddleware()

About


Languages

Language:TypeScript 65.2%Language:Objective-C 13.1%Language:Ruby 8.8%Language:Java 8.3%Language:JavaScript 2.8%Language:Starlark 1.9%