Nimble Polyglot Microcosm

    @izettle/app-utils

    0.7.0 • Public • Published

    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$
    }

    Install

    npm i @izettle/app-utils

    DownloadsWeekly Downloads

    2

    Version

    0.7.0

    License

    UNLICENSED

    Last publish

    Collaborators

    • mskalozub
    • rsantanaoliveira
    • venunimmala
    • amtruong
    • vikrgoel
    • astrochoco
    • ketkeearyamane
    • renhorn
    • anedbal
    • jwyke-pp
    • kevasudev
    • chbergsten
    • karyamane
    • vhoang_izettle
    • sirpersson
    • pklerehag
    • achernenko
    • vpestana
    • brivo
    • toomash
    • zavdev
    • lhenningsson
    • frcs5be
    • igurkaniz
    • zettleola
    • pypl_mattias
    • svanstrom
    • amir-izettle
    • yajliu
    • jesse_tao
    • jika11
    • niklas-izettle
    • anand-izettle
    • nzroller
    • jr.claramunt
    • jkniz
    • nataliya.remez
    • nataliya.patsovska
    • masadjordjevic
    • natalianaumova
    • mmnalaka
    • jalet
    • izettle-web
    • bkalirajan
    • anton-cn
    • viktorcedlind
    • beequeue
    • martinfridh
    • jakob_henriksson
    • tobli
    • pinkman84
    • jasonbroekhuizen
    • atj-at-izettle
    • asalikiryaki
    • thompsoniz
    • igorlealiz
    • alpha-citrus
    • rellalalaxa
    • hfreire
    • dashtinejad
    • toniton
    • linux-nerd
    • lnsv
    • rikku
    • davyj0nes
    • iz-mse-manage-mob
    • ramtin
    • jeppemannen
    • sergio.ortiz-gil
    • skyewelch
    • asinglebit
    • jamesmcmeexiz
    • enhorn
    • pbriois
    • izrobin
    • shumel
    • martiniz
    • garymackenzie-iz
    • izettle-pro-devops
    • rayproud
    • peterthomson
    • sustro
    • s.rabiee
    • petercahillthomson
    • lei.wang.izettle
    • antonio.lages
    • fredrik.munter
    • bagnihotri
    • gustavovnicius
    • pp-jack
    • usmanalvi
    • surajalok
    • va-po
    • dgorohov.izettle
    • beizja
    • karschultz
    • sm0202
    • taiza
    • hikapoor
    • iansavchenko
    • johan-izettle
    • jasuri-iz
    • louisantonini.izettle
    • gtroshin_izettle
    • pritin.tyagaraj.paypal
    • natalianaum
    • swajoshiizettle
    • thiyagugk
    • iz-lonell
    • ngong
    • pp-jeaman
    • ijlal-zettle
    • johan_ipsonious