An open API service indexing awesome lists of open source software.

https://github.com/ratson/falcor-redux

Redux binding for dispatching Falcor methods.
https://github.com/ratson/falcor-redux

Last synced: about 1 year ago
JSON representation

Redux binding for dispatching Falcor methods.

Awesome Lists containing this project

README

          

# falcor-redux

Redux binding for dispatching Falcor methods.

Heavily inspired by [react-router-redux](https://github.com/reactjs/react-router-redux).

## Installation

```
npm install falcor-redux --save
```

## Usage

```js
import {falcorActions, falcorMiddleware} from 'falcor-redux'
import {Model} from 'falcor'
import rootReducer from '/reducers'

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

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

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