Closed tevariou closed 3 years ago
This is solved in https://github.com/rtk-incubator/rtk-query/pull/146 but we haven't had a release since then.
You can install the most current build from https://ci.codesandbox.io/status/rtk-incubator/rtk-query/pr/1 and try that out if it solves the problem for you.
Little warning though: the entry point for the react hooks createApi
has changed to @rtk-incubator/rtk-query/react
Description
I have a mutation with those arguments:
When I want to perform an update with
The resulting query is
http://host/api/foos?optionalBar=undefined
I use
rtk-codegen
to generate my hooks: