Using a cache system would be great.
The cache could be an external module to prevent dependency on LocalStorage or Redux Store.
An extra could be the following process:
- Return the result from cache straight away
- Continue the fetch in backgroung
- When the succeed, update the cache
- Return the up-to-date result again for a re-render
Using a cache system would be great.
The cache could be an external module to prevent dependency on LocalStorage or Redux Store.
An extra could be the following process: