Infinite Loading via SWR
gregrickaby opened this issue · 3 comments
gregrickaby commented
This is a nice to have
Currently, infinite loading is handled via a custom fetch()
function. This works, but by leveraging SWR's built in caching, we could potentially decrease the amount of requests to the Reddit API, which is currently capped at 60 hits per minute.
- Refactor
<Results />
to use SWR instead of customfetch()
Note: The SWR library is already installed and used for <Search />
mayankjx commented
Hey @gregrickaby I'd like to work on this issue for hacktoberfest
gregrickaby commented
@mayankjx Sure thing! Please see the CONTRIBUTING guide to get started.
gregrickaby commented
No longer interested in pursuing this. Closing.