1
0
Fork 0
mirror of synced 2024-09-20 19:33:10 +12:00

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

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