Move grid min height subcsription into onMount handler to be more explicit about it only running once
This commit is contained in:
parent
9184d1b1f4
commit
eaa0a2023a
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue