-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fetchBaseQuery doesn't override 'method' field #3061
Comments
Have you tried it, or are you just assuming this? You should be able to pass any argument that would be passed into |
I tried it. |
Huh, that was indeed an oversight. Could you please test the CodeSandbox CI package build from #3062 and give feedback if that works for you? |
Nice reaction time :) I tested it and it works correctly with this build! Also it correctly falls back to 'GET' if no method is specified. |
Using
fetchBaseQuery
it's possible to override the headers and other options for all requests in one place except for themethod
field. It's hardcoded asGET
. Is there a reason for this? I have a use-case where all of my requests usePOST
so it would be convenient to have it overridden in a single place. It could be changed to fallback toGET
by default.The text was updated successfully, but these errors were encountered: