mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
Loading an older page prepends hundreds of messages in one flush. tap's scheduler aborts after 50 dirty resources and drops the overflow, so the thread never applied the merged page: the scroll-restore gate never passed and the top sentinel kept re-triggering (loads everything at once). Raise MAX_FLUSH_LIMIT 50->2000 via bun patchedDependencies. Adds a Playwright regression spec driving the real message-window store and HappyThread against a fake paginated API: one page per top approach, scroll restored, no idle reloads.
11 lines
366 B
Diff
11 lines
366 B
Diff
diff --git a/dist/core/scheduler.js b/dist/core/scheduler.js
|
|
index a61a05417fca038339e8e80c2dee5ee2ea4ef211..05e10177ce4d69bac63d02fee06cd151ea0f62ba 100644
|
|
--- a/dist/core/scheduler.js
|
|
+++ b/dist/core/scheduler.js
|
|
@@ -1,4 +1,4 @@
|
|
-const MAX_FLUSH_LIMIT = 50;
|
|
+const MAX_FLUSH_LIMIT = 2000;
|
|
let flushState = {
|
|
schedulers: new Set([]),
|
|
isScheduled: false,
|