You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I can't figure out how to combine the results like this.
I also tried a computed signal, but computed() returns null until both queries load, and I'd prefer to stay within the TanStack Query API:
Is there a built-in way in TanStack Query for Angular to derive/merge the results of two queries into one object (similar to injectQueries + select), while still keeping both queries independent?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have two separate queries using
@tanstack/angular-query:I want to keep these queries separate, but in the UI I want to consume them as one combined object, e.g.:
Ideally something like:
But I can't figure out how to combine the results like this.
I also tried a computed signal, but
computed()returnsnulluntil both queries load, and I'd prefer to stay within the TanStack Query API:Is there a built-in way in TanStack Query for Angular to derive/merge the results of two queries into one object (similar to
injectQueries + select), while still keeping both queries independent?Beta Was this translation helpful? Give feedback.
All reactions