0.0.2 • Published 7 years ago

falcor-redux v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

falcor-redux

Redux binding for dispatching Falcor methods.

Heavily inspired by react-router-redux.

Installation

npm install falcor-redux --save

Usage

import {falcorActions, falcorMiddleware} from 'falcor-redux'
import {Model} from 'falcor'
import rootReducer from '<project-path>/reducers'

const falcor = new Model({...})

const store = createStore(
  rootReducer,
  applyMiddleware(falcorMiddleware(falcor)),
)

store.dispatch(falcorActions.get(['some', 'path']))