From 60598e8b929d824688e5b2f408de661834b0730c Mon Sep 17 00:00:00 2001
From: Tom-Rune Bornholdt
Date: Tue, 4 Feb 2025 19:16:50 +0100
Subject: [PATCH] feat: add response update feature to query stack and enhance
post handling
---
apps/playground/src/app/app.component.ts | 41 +++++++++++--
.../src/lib/experimental/http/query-errors.ts | 8 +++
.../experimental/http/query-execute-utils.ts | 1 +
.../lib/experimental/http/query-features.ts | 58 +++++++++++++++++++
.../src/lib/experimental/http/query-stack.ts | 7 ++-
.../src/lib/experimental/http/query-state.ts | 12 +++-
.../src/lib/experimental/http/query-utils.ts | 4 +-
libs/query/src/lib/experimental/http/query.ts | 7 ++-
8 files changed, 128 insertions(+), 10 deletions(-)
diff --git a/apps/playground/src/app/app.component.ts b/apps/playground/src/app/app.component.ts
index 9e291f5be..225ec8f08 100644
--- a/apps/playground/src/app/app.component.ts
+++ b/apps/playground/src/app/app.component.ts
@@ -1,3 +1,4 @@
+import { JsonPipe } from '@angular/common';
import {
ChangeDetectionStrategy,
Component,
@@ -107,6 +108,7 @@ const queryGqlPost = createGqlQuery({
type Post = {
id: number;
+ userId: number;
title: string;
body: string;
};
@@ -154,8 +156,7 @@ type GetUserQueryArgs = {
Error
{{ myPostQuery1.error() | json }}
-
-
+-->
Response
{{ myPost.response() | json }}
@@ -165,7 +166,14 @@ type GetUserQueryArgs = {
Error
{{ myPost.error() | json }}
--->
+
+
+
+
+
+
+
+