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.
- Host: GitHub
- URL: https://github.com/ratson/falcor-redux
- Owner: ratson
- Created: 2016-07-22T14:26:19.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-12-10T12:06:37.000Z (over 9 years ago)
- Last Synced: 2025-03-01T06:35:53.456Z (over 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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']))
```