Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ember-redux/ember-redux-saga-shim
Ember shim for redux-saga
https://github.com/ember-redux/ember-redux-saga-shim
ember redux redux-saga
Last synced: about 1 month ago
JSON representation
Ember shim for redux-saga
- Host: GitHub
- URL: https://github.com/ember-redux/ember-redux-saga-shim
- Owner: ember-redux
- License: mit
- Created: 2016-12-12T21:19:02.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-02T12:59:42.000Z (about 5 years ago)
- Last Synced: 2024-09-21T19:49:24.696Z (3 months ago)
- Topics: ember, redux, redux-saga
- Language: JavaScript
- Homepage:
- Size: 603 KB
- Stars: 0
- Watchers: 9
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ember-redux-saga-shim
[![Travis][ci-img]][ci-url] [![NPM][npm-img]][npm-url] ![Ember][ember-img]
## Deprecated
With the release of ember-redux v5.0 you should uninstall this
```bash
npm uninstall ember-redux-saga-shim --save-dev
ember install ember-auto-import
npm install redux-saga --save-dev
```## Installation
```bash
ember install ember-redux-saga-shim
```## Usage
```js
import createSagaMiddleware from 'redux-saga'
import {call, put, takeEvery, takeLatest} from 'redux-saga/effects'
```To learn more about `redux-saga` and how to use it visit the [redux-saga](https://github.com/yelouafi/redux-saga) Github page.
## Polyfill
In order to use [generator functions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*) in your Ember application you need to make sure you do one of the following:
1. **Include Babel Polyfills** – In order to include Babel polyfills add the following to your *ember-cli-build.js* configuration:
```js
'ember-cli-babel': {
includePolyfill: true
}
```[Learn more…](https://github.com/babel/ember-cli-babel#polyfill)
2. **Add a Polyfill** – Add a polyfill by simply running the following command:
```bash
ember install ember-maybe-import-regenerator
```[Learn more…](https://github.com/machty/ember-maybe-import-regenerator)
[ci-img]: https://img.shields.io/travis/ember-redux/ember-redux-saga-shim.svg "Travis CI Build Status"
[ci-url]: https://travis-ci.org/ember-redux/ember-redux-saga-shim
[ember-img]: https://img.shields.io/badge/ember-1.13.13+-green.svg "Ember 1.13.13+"
[npm-img]: https://img.shields.io/npm/v/ember-redux-saga-shim.svg "NPM Version"
[npm-url]: https://www.npmjs.com/package/ember-redux-saga-shim