rtk-query-codegen
ngrx-rtk-query
rtk-query-codegen | ngrx-rtk-query | |
---|---|---|
4 | 3 | |
90 | 54 | |
- | - | |
0.0 | 8.6 | |
over 2 years ago | about 1 month ago | |
TypeScript | TypeScript | |
- | MIT License |
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.
ngrx-rtk-query
-
Clean Front End Architecture with SvelteKit
Yep, we actually have an RTK Query + Svelte sandbox in our examples page!
https://redux-toolkit.js.org/rtk-query/usage/examples#svelte
We've also seen people use RTKQ with Vue and NgRx as well, like this:
- https://github.com/SaulMoro/ngrx-rtk-query
-
Redux Toolkit 1.6.0 - new RTK Query data caching API!
You know about ngrx-rtk-query?
-
Cousins playing nicely: Experimenting with NgRx Store and RTK Query
Note: While I was going through my experiment, Saul Moro also created a hook-style library for Angular, NgRx, and RTK Query. Check out the repo at: https://github.com/SaulMoro/ngrx-rtk-query
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.
store - 🚀 NGXS - State Management for Angular
oazapfts - Generate TypeScript clients to tap into OpenAPI servers
redux-toolkit - The official, opinionated, batteries-included toolset for efficient Redux development
redux - A JS library for predictable global state management
ngrx-rtk-query - A sample application using NgRx Store and RTK Query
Visual Studio Code - Visual Studio Code
platform - Reactive State for Angular
rtk_query - https://redux-toolkit.js.org/tutorials/rtk-query