From 360f3e25095df1032f606130e3bf571f1b3030d4 Mon Sep 17 00:00:00 2001 From: Ivan S Glazunov Date: Mon, 23 Sep 2024 21:10:10 +0300 Subject: [PATCH] 0.0.563 --- imports/client.tsx | 6 ++++++ package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/imports/client.tsx b/imports/client.tsx index b7e32631..c523cdb7 100644 --- a/imports/client.tsx +++ b/imports/client.tsx @@ -2639,6 +2639,9 @@ export function useDeepQuery { + if (result.loading && !generated.loading) setGenerated({ data: generated.data, loading: result.loading }); + }, [result.loading, generated]); useEffect(() => { if (o?.aggregate) setGenerated({ loading: false, data: (result)?.data?.q0?.aggregate?.[o.aggregate] }); else { @@ -2712,6 +2715,9 @@ export function useDeepSubscription
{ + if (result.loading && !generated.loading) setGenerated({ data: generated.data, loading: result.loading }); + }, [result.loading, generated]); useEffect(() => { if (o?.aggregate) setGenerated({ loading: false, data: (result)?.data?.q0?.aggregate?.[o.aggregate] }); else { diff --git a/package.json b/package.json index abc4a5de..1ef17c8b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@deep-foundation/deeplinks", - "version": "0.0.562", + "version": "0.0.563", "license": "Unlicense", "type": "module", "main": "import.js",