Wednesday, September 27, 2023

161: Carousels and Rate Limits

 Today in my free time I downloaded with Node package for React's Alice Carousel. This package gives you a component for a nice carousel that you can extensively customize and fill with items. You can also give it a Responsive object which defines how the carousel will act on mobile screens. I was building it out where a response from the CoinGecko API is mapped out into the carousel as individual items. As I was tinkering with the styling I eventually got an Axios error in my console that my API request has been blocked for too many requests. This is because my component would refresh constantly as adjusted the code and sent a new API request each time, which overwhelmed the rate limit on the CoinGecko free tier. 

No comments:

Post a Comment

190: Sablier

 The CodeHawks platform has an upcoming audit on the Sablier protocol, so I decided to read through the docs and familiarize myself with the...