redux-toolkit icon indicating copy to clipboard operation
redux-toolkit copied to clipboard

RTKQ OpenApi CodeGen Common Parameters

Open sebws opened this issue 1 year ago • 1 comments

Hi there,

Using the RTKQ OpenApi CodeGen, common parameters are tricky to deal with. I have set some common parameters to be put in the headers for every query. The generated hooks require these parameters on every hook use. I would much prefer to be able to define these within the base query or something like that. Is there a way to do something like this?

sebws avatar Mar 21 '24 04:03 sebws

I’ve seen issue #3006 which is also relevant, but has no solution.

sebws avatar Mar 21 '24 04:03 sebws