redux-toolkit
redux-toolkit copied to clipboard
rtk-query-codegen-openapi with hooks: true does not generate lazy hooks
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.