falcor-redux

0.0.2 • Public • Published

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']))

Dependents (0)

Package Sidebar

Install

npm i falcor-redux

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • ratson