From eaa0a2023a482ee4a421accd2165fac64889543c Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 17 May 2024 10:51:17 +0100 Subject: [PATCH] Move grid min height subcsription into onMount handler to be more explicit about it only running once --- packages/client/src/components/app/GridBlock.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/app/GridBlock.svelte b/packages/client/src/components/app/GridBlock.svelte index da9a3ccc4e..5731bf2216 100644 --- a/packages/client/src/components/app/GridBlock.svelte +++ b/packages/client/src/components/app/GridBlock.svelte @@ -51,7 +51,6 @@ metadata: { dataSource: table }, }, ] - $: gridContext?.minHeight?.subscribe($height => (minHeight = $height)) // Provide additional data context for live binding eval export const getAdditionalDataContext = () => { @@ -130,6 +129,7 @@ onMount(() => { gridContext = grid.getContext() + gridContext.minHeight.subscribe($height => (minHeight = $height)) })