Cached Fetch
Wrap the native fetch() API with a cache that expires, can be bypassed per request, and falls back to stale data when the network fails.
Asked in Uber frontend interviews
Wrap the native fetch() API with a cache that expires, can be bypassed per request, and falls back to stale data when the network fails.
Asked in Uber frontend interviews