rtk-query-codegen
oazapfts
rtk-query-codegen | oazapfts | |
---|---|---|
4 | 2 | |
90 | 459 | |
- | 2.8% | |
0.0 | 9.0 | |
over 2 years ago | 8 days ago | |
TypeScript | TypeScript | |
- | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rtk-query-codegen
-
FastAPI vs Next.js API for Backend
The nice thing is FastAPI generates OpenAPI. And you can use that to generate a fully typed React-Redux-Typescript client https://github.com/rtk-incubator/rtk-query-codegen . So oddly enough it's even faster than code sharing because everything is generated for you, whereas otherwise you could share interfaces but you'd still have to write the client code.
-
Why Redux Is More Relevant Than Ever Today
As an example, this is the "boilerplate" for >20 complete api endpoints and hooks for them: https://github.com/rtk-incubator/rtk-query-codegen/blob/next/test/fixtures/generated.ts
-
Redux Toolkit 1.6.0 - new RTK Query data caching API!
But really, that should only be a real concern once you reach 50+ endpoints. If you look at the autogenerated api for the OpenAPI petstore example with somewhere around 20+ endpoints, that's still pretty manageable. (And autogenerated, so nothing to worry about anyways.)
-
Getting array of values from Literal type
Currently using dtsgenerator but will probably migrate to RTK query codegen soon, neither of which has the functionallity for that.
oazapfts
-
OpenAPI in a serverless repo
I prefer to write the OpenAPI spec in YAML by hand as the source of truth and use that to auto-generate the appropriate client and server types for whichever languages those are implemented in. For my current project, I use oazapfts to generate TypeScript client types that my frontend uses to talk to the backend.
-
Redux Toolkit 1.6.0 - new RTK Query data caching API!
Looks like my error is from `oazapfts` and already reported: https://github.com/cellular/oazapfts/issues/51
What are some alternatives?
graphql-code-generator - A tool for generating code based on a GraphQL schema and GraphQL operations (query/mutation/subscription), with flexible support for custom plugins.
redoc - 📘 OpenAPI/Swagger-generated API Reference Documentation
redux-toolkit - The official, opinionated, batteries-included toolset for efficient Redux development
ReDoc - 📘 OpenAPI/Swagger-generated API Reference Documentation [Moved to: https://github.com/Redocly/redoc]
redux - A JS library for predictable global state management
ngrx-rtk-query - Make RTK Query with Hooks works in Angular Applications
prism - Turn any OpenAPI2/3 and Postman Collection file into an API server with mocking, transformations and validations.
mockoon - Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.