'Suggestions for rate limiting using Axios

I'm using react with axios for accessing api from cryptocompare. Api has limit of 15 call per second.

Now after 15 api call I'm getting error of "Rate limit exceeded".

I am looking for a library which can help set the rate limiting options for the axios call.



Solution 1:[1]

have you followed best practices to fetch data in react ? https://blog.hellojs.org/fetching-api-data-with-react-js-460fe8bbf8f2 you need to fetch only once in componentWillMount and keep it into state

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mini