Noncommital Premarital Mischief

    @eleetsoftware/redux-electron-middleware

    1.0.0 • Public • Published

    redux-electron-middleware

    NPM Version Build Status License Coverage Status Known Vulnerabilities Downloads dependabot

    How To use these middleware's

    In your store file your would ...

    import { reduxElectronMiddleware } from "@eleetsoftware/redux-electron-middleware"
    
    ...
    applyMiddleware(reduxElectronMiddleware)
    ...

    or

    import { reduxElectronActionMiddleware } from "@eleetsoftware/redux-electron-middleware"
    
    ...
    applyMiddleware(reduxElectronActionMiddleware)
    ...

    reduxElectronMiddleware uses electrons ipcRenderer to send the updated state to electron for you to use however you want.

    reduxElectronActionMiddleware uses electrons ipcRenderer to send the action to electron for you to use however you want.

    My usecase

    I wanted to be able to retain my redux state after my electon app was closed as well as prepare a default or preloaded state to my renderer (react spa)

    Install

    npm i @eleetsoftware/redux-electron-middleware

    DownloadsWeekly Downloads

    3

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    11.9 kB

    Total Files

    13

    Last publish

    Collaborators

    • haynescw