gregrickaby/viewer-for-reddit

Infinite Loading via SWR

gregrickaby opened this issue · 3 comments

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 custom fetch()

Note: The SWR library is already installed and used for <Search />

Hey @gregrickaby I'd like to work on this issue for hacktoberfest

@mayankjx Sure thing! Please see the CONTRIBUTING guide to get started.

No longer interested in pursuing this. Closing.