Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.52 KB

README.md

File metadata and controls

45 lines (30 loc) · 1.52 KB

ember-redux-offline-shim

Travis NPM Ember

babel 6 is required so please use ember-cli v2.13.0+

ember install ember-redux
ember install ember-fetch
ember install ember-lodash-shim
ember install ember-json-stringify-safe-shim
ember install ember-redux-persist-shim
ember install ember-redux-offline-shim

Usage

//app/enhancers/index.js

import { offline } from 'redux-offline';
import offlineConfig from 'redux-offline/defaults';

export default offline(offlineConfig);

To learn more about redux-offline and how to use it visit the redux-offline Github page.

Example

https://github.com/toranb/ember-redux-yelp/commits/branches/reduxOffline

The offline actions are defined in the welp result component

https://github.com/toranb/ember-redux-yelp/blob/1d85dd147f9a51d6d570b5df44b0c4e3499edad3/app/components/welp-result/component.js

The offline reducers are defined in the results reducer

https://github.com/toranb/ember-redux-yelp/blob/1d85dd147f9a51d6d570b5df44b0c4e3499edad3/app/reducers/results.js