-
-
Notifications
You must be signed in to change notification settings - Fork 639
Get response headers #2438
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestswr-openapiRelevant to swr-openapi libraryRelevant to swr-openapi library
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestswr-openapiRelevant to swr-openapi libraryRelevant to swr-openapi library
Description
Sometimes, the pagination info is given in resoponse headers such as wordpress rest api.
Proposal
We can customize the fetcher function to access response headers directly:
Alternatively, we could enhance the hook to return response headers directly:
The
useInfinitehook should also support response header access for consistency.Extra