Handle hot module unloading in layout

This commit is contained in:
Jon Staab
2025-10-21 08:27:30 -07:00
parent 7476767aa7
commit ecbb3086d8
8 changed files with 262 additions and 285 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ export const makeFeed = ({
onScroll: async () => {
const $buffer = get(buffer)
events.update($events => [...$events, ...$buffer.splice(0, 100)])
events.update($events => [...$events, ...$buffer.splice(0, 30)])
if ($buffer.length < 100) {
ctrl.load(100)