rtk-incubator / rtk-query-codegen

93 stars 13 forks source link

Option to generate Lazy Hooks too #67

Closed sn3ek closed 2 years ago

sn3ek commented 3 years ago

Thanks for providing such a great code generator for RTK-Query.

Do you have any plans to also provide an option to generate Lazy hooks too?

Thanks Lars

phryneas commented 3 years ago

These ones? https://redux-toolkit.js.org/rtk-query/api/created-api/hooks#uselazyquery

phryneas commented 3 years ago

Argh sorry, wrong repository - I thought we were on the RTK repo right now :rofl:

Generally, yes, we can add those exports to generation. I'll flag it a feature :)

sn3ek commented 3 years ago

Yes. Sounds good. 👍

phryneas commented 2 years ago

The codegen is now published as @rtk-query/codegen-openapi and the code has moved over to the Redux Toolkit monorepo.

As usage has changed as well, please read the new documentation.

As this repository is getting archived, I am going to close this issue. If you are still interested in continuing this feature, please re-open a ticket over in the RTK repository.