Move grid min height subcsription into onMount handler to be more explicit about it only running once

This commit is contained in:
Andrew Kingston 2024-05-17 10:51:17 +01:00
parent 9184d1b1f4
commit eaa0a2023a
1 changed files with 1 additions and 1 deletions

View File

@ -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))
})
</script>