Skip to content

Expose headers on use query hooks #182

@trabati

Description

@trabati

Is your feature request related to a problem? Please describe.
Many APIs use X-Total-Count as a Header for pagination.
Also, other headers might be useful and should be exposed to the user.

Describe the solution you'd like
along with data, a headers property should be returned from a useQuery hook.
Or data should provide the body and headers

Right now it is impossible to access the headers from query hooks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions