Skip to content
Source
Sign inSign up
TanStack/query

Angular: fix `injectQueries` #8704

Send to my agent
Closedarnoud-dv(GitHub profile, opens in a new tab) opened this issue 5 comments

injectQueries has always been non-functional. It needs to be fixed in implementation, API and typing.

PR: https://github.com/TanStack/query/pull/8690

  1. arnoud-dv(GitHub profile, opens in a new tab) added labelspackage: angular-query

  2. arnoud-dv(GitHub profile, opens in a new tab) added labelspackage: angular-query-experimental

  3. What's the current approach to building with Angular + TanStack Query ? All based on the Query client?

    P.S.: No wonder I was pulling my hair about onSucess and onError not working. I had initially come to report this... 😅

  4. Any idea when we’ll be able to use injectQueries?

  5. Since your change we are stuck with out version:

        "@tanstack/angular-query-devtools-experimental": "5.87.4",
        "@tanstack/angular-query-experimental": "5.87.4",
        "@tanstack/query-async-storage-persister": "5.87.4",
        "@tanstack/query-persist-client-core": "5.87.4",
        "@tanstack/query-sync-storage-persister": "5.87.4",
  6. There is a type error in the result of injectQueries, most apparent in the combine function or a computed signal on the result, it says result[i].data is a signal while console logging shows that it is not

  7. benjavicente(GitHub profile, opens in a new tab) assignedbenjavicente

  8. TanStack Angular Query stable was released with injectQueries as stable 🚀

    npm i @tanstack/angular-query

Sign in to join this conversation.