Our great sponsors
-
query
🚀 Powerful asynchronous state management, server-state utilities and data fetching for Angular Applications (by ngneat)
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
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.
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).
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)
Still, I'm not really sure about its dependencies: it lists react and @tanstack/react-query (as opposed to @tanstack/query-core) and bundlejs reports 124KB gzipped. Also, while using it, you still need to refer to their react docs (that documentation is really good and has a lot of examples) but not everyone will be thrilled about checking a react documentation when they're using an angular package.