0.7.0 • Published 7 years ago

@izettle/app-utils v0.7.0

Weekly downloads
20
License
UNLICENSED
Repository
github
Last release
7 years ago

javascript-app-utils

Utilities and helpers for javascript applications developed with React, Redux and RxJS.

combineModules()

Combine modules that has a reducer and/or an epic:

import { applyMiddleware, createStore } from "redux"
import { createEpicMiddleware } from "redux-observable"
import { combineModules } from "@izettle/app-utils"
import * as modules from "./modules"

const rootModule = combineModules(modules)

const store = createStore(rootModule.reducer, {}, applyMiddleware(
  createEpicMiddleware(rootModule.epic)
))

Modules must look like this:

const exampleModule = {
  name: "example",
  reducer: (state, action) => state,
  epic: action$ => action$
}
0.7.0

7 years ago

0.6.0

7 years ago

0.5.1

7 years ago

0.5.0

8 years ago

0.4.1

8 years ago

0.4.0

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago

0.1.0-dev

8 years ago

1.0.0

8 years ago