Remove some redundant initial derived store values

This commit is contained in:
Andrew Kingston 2024-06-27 14:25:09 +01:00
parent 99b522b32d
commit 094e4951a7
No known key found for this signature in database
1 changed files with 3 additions and 6 deletions

View File

@ -21,15 +21,13 @@ export const deriveStores = context => {
[scrollTop, rowHeight],
([$scrollTop, $rowHeight]) => {
return Math.floor($scrollTop / $rowHeight)
},
0
}
)
const visualRowCapacity = derived(
[height, rowHeight],
([$height, $rowHeight]) => {
return Math.ceil($height / $rowHeight) + 1
},
0
}
)
const renderedRows = derived(
[
@ -53,8 +51,7 @@ export const deriveStores = context => {
...$rowChangeCache[row._id],
__metadata: $conditionMetadata[row._id],
}))
},
[]
}
)
// Derive visible columns