This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| Updated version of matthewsuan/axios.js plugin, to limit concurrent requests. | |
| Added 2 methods to dinamically change MAX_REQUESTS_COUNT and INTERVAL_MS | |
| Use like this: | |
| import axiosLimit from "@/Plugins/axiosLimit.js"; | |
| axiosLimit | |
| .setMaxRequestCount(1) | |
| .setIntervalMs(500) |