React offline sync with redux and reactstrap.
This app aims to provide solution for offline syncing the app without hindering user interaction.
Wrap you components using HOC withPendingRequest ( ./src/withPendingRequest ).
The HOC handles api calls as user gets back online.
Step: 1 import withPendingRequest from 'react-offline-sync'; step: 2 export default connect(mapStateToProps, mapDispatchToProps)(withPendingRequest(Home)); step: 3 import offlineMiddleware from 'react-offline-sync'; step: 4 applyMiddleware(offlineMiddleware);
- Clone or Download the repository
- Start the app
$ npm start
Your app should now be running on localhost:8000
Built under MIT license.