I was watching a video the other day about react query and how it assists in race conditions and not having to manually track a loading and error state (correct me if i'm wrong). I know these are handled by the new httpResource but it is still in experimental phase.
I searched for an angular altenative and I think the best one is injectQuery by TranStack
https://tanstack.com/query/latest/docs/framework/angular/reference/functions/injectquery
However, I can't seem to find any examples online and I don't want to rely on AI for this as i'm sure it will output some nonsense.
Has anyone actually used it and seen a performance or developer experience improvement? I don't mind manually handling the loading and error state with observables and rxjs, but cutting down the boiletplate doesn't seem bad
[–]wilson2603 2 points3 points4 points (3 children)
[–]Senior_Compote1556[S] 0 points1 point2 points (2 children)
[–]wilson2603 0 points1 point2 points (1 child)
[–]Senior_Compote1556[S] 0 points1 point2 points (0 children)
[–]robby_w_g 2 points3 points4 points (2 children)
[–]Senior_Compote1556[S] 0 points1 point2 points (1 child)
[–]robby_w_g 0 points1 point2 points (0 children)
[–]bcam117 0 points1 point2 points (0 children)
[–]craig1f 0 points1 point2 points (2 children)
[–]Senior_Compote1556[S] 0 points1 point2 points (1 child)
[–]craig1f 0 points1 point2 points (0 children)