TANStack Query

This page summarizes the projects mentioned and recommended in the original post on /r/Angular2

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • query

    🚀 Powerful asynchronous state management, server-state utilities and data fetching for Angular Applications (by ngneat)

  • 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

  • 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)

  • 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.

    SurveyJS logo
  • 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.

  • 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.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts