Closed
Description
Describe the bug
When cachePolicy: CachePolicies.CACHE_FIRST
, the response interceptor doesn't get called when the results are read from cache, ie the second time its called.
I've tweaked the useFetch + + Request/Response Interceptors demo to reproduce.
https://codesandbox.io/s/usefetch-provider-requestresponse-interceptors-6zwmw
To Reproduce
Steps to reproduce the behavior:
- let page run first time
- after loaded, click re-fetch button
- data read from cache
- the data is not transformed using the response interceptor
Expected behavior
the response interceptor should be called even if the data is read from cache.
Metadata
Metadata
Assignees
Labels
No labels