ao
axios-offline
npm i axios-offline
ao

axios-offline

Remembering failed requests and repeating when an internet connection is available

by jonkofee

1.5.2 (see all)License:MITTypeScript:Not Found
npm i axios-offline
Readme

axios-offline

npm package npm downloads License: MIT

Remembering failed requests and repeating when an internet connection is available

Install

npm install axios-offline --save

or

yarn add axios-offline

Usage

import Axios from 'axios'
import AxiosOffline from 'axios-offline'
import LocalForage from "localforage"

let AxiosOfflineAdapter = AxiosOffline({
  defaultAdapter: Axios.defaults.adapter, //require, basic adapter
  storageName: "axios-offline", //optional, default: "axios-stack"
  storageDriver: LocalForage.LOCALSTORAGE //optional, default: LocalForage.LOCALSTORAGE
})

let http = Axios.create({
  adapter: AxiosOfflineAdapter
})

export default http

Downloads/wk

74

GitHub Stars

12

LAST COMMIT

3yrs ago

MAINTAINERS

1

CONTRIBUTORS

0

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
1.5.2
latest
4yrs ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate