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

rtk-query-codegen-openapi with hooks: true does not generate lazy hooks

Open RubberChickenParadise opened this issue 3 years ago • 1 comments

when using the rtk-query-codegen-openapi, the useLazyxxxxxx are not generated as exports.

Work around is using the exported API directly and api.useLazyxxxxxxxxxxx however that brings in a different pattern when wanting to handle lazy fetching.

What are the thoughts around adding another config option (lazyHooks for example) defaulted to false to enable the exports of the lazy hooks as well.

RubberChickenParadise avatar Jan 21 '22 18:01 RubberChickenParadise