Skip to content

fetchBaseQuery doesn't override 'method' field #3061

@alex-vukov

Description

@alex-vukov

Using fetchBaseQuery it's possible to override the headers and other options for all requests in one place except for the method field. It's hardcoded as GET. Is there a reason for this? I have a use-case where all of my requests use POST so it would be convenient to have it overridden in a single place. It could be changed to fallback to GET by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions