gdirk07 / PokemonChecker

Playing around with APIs
https://gdirk07.github.io/PokemonChecker/
0 stars 0 forks source link

Implemented a basic cache for holding the pokemon names #32

Closed jeremy-jtlo closed 2 years ago

jeremy-jtlo commented 2 years ago

As the title states, this PR should introduce a cache that prevents the app from performing the bulk fetch of all pokemon names on boot.

By default, the cache will live in localStorage for 30 minutes before clearing itself.

gdirk07 commented 2 years ago

Haven't found any issue, but unclear on some reasonings, will touch base sometime this week.