query
rx-query
query | rx-query | |
---|---|---|
3 | 6 | |
521 | 205 | |
1.9% | - | |
8.8 | 0.0 | |
about 1 month ago | over 1 year 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.
query
-
A Deep Dive into Angular and Tanstack Query with Our Demo Store
Angular TanQuery Repo: https://github.com/ngneat/query/
-
Angular state management
I have reasonable knowledge with most of other popular JS frameworks especially React. But, Angular seems quite different from DX perspective. For React, my default stage management is to use React Query for server sync and Zustand for client state. Often on Angular context I read that people recommend using NgRx and saying that it is like Redux. But I find Redux DX quite bad and I only work with it on legacy projects. So is there similar approach to managing state in Angular app? I found solutions such as: https://github.com/ngneat/query and then https://github.com/ngneat/elf. Would these make sense for Angular and are there good alternatives?
-
TANStack Query
what you're looking for is ngneat/query. It uses tanstack query under the hood. much like in react, you can use it for async (also called server) state management, it will not help you with managing client state (like dark/light theme toggle, ...). You still need rxjs for making API calls much like you would use the fetch api or axios in the react version. I don't think it replaces signals, you could still use signals with it (and signals support seems to be planned).
rx-query
-
TANStack Query
If anyone knows about another angular package that provides caching and request status flags out of the box, please let me know (rx-query is unmaintained, other packages provide the loading spinner only)
-
React table and react query alternatives in angular
Looks like rx-query was inspired by react-query but it's no longer maintained
-
React Query equivalent for Angular?
Heard about https://github.com/timdeschryver/rx-query but never tried it. Looks like its not maintained anymore :(
-
Proof of concept: ngx-query-state
I'm a little confused. How's this different from rx-query? (your own library) https://github.com/timdeschryver/rx-query
- How can you make a GET request and wait for the response before proceeding to do other operations?
-
When should I use NgRx (or Redux)
This is largely to set a precondition that you should avoid trying to use NgRx in situations where the API is handling all or most of the state for the frontend. If your UI only needs to know about the { data, error, loading } states of API calls for the most part (like when using Apollo or rx-query), then chances are NgRx isn’t a great option.
What are some alternatives?
store - 🚀 NGXS - State Management for Angular
until-destroy - 🦊 RxJS operator that unsubscribe from observables on destroy
elf - 🧙♀️ A Reactive Store with Magical Powers
platform - Reactive State for Angular
SWR - React Hooks for Data Fetching
RxJS - A reactive programming library for JavaScript
TanStack Query - 🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.
angularfire - Angular + Firebase = ❤️
ng-online-store-tanstack-query-demo
apollo-angular - A fully-featured, production ready caching GraphQL client for Angular and every GraphQL server 🎁
bundlejs - An online tool to quickly bundle & minify your projects, while viewing the compressed bundle size, all running locally on your browser. A quick and easy way to bundle, minify, and compress (gzip and brotli) your ts, js, jsx and npm projects all online, with the bundle file size.
RxDB - A fast, local first, reactive Database for JavaScript Applications https://rxdb.info/