1
0
Fork 0
mirror of synced 2024-09-09 22:16:26 +12:00

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

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>