MCPcopy Create free account
hub / github.com/apache/maka / prefetch

Function prefetch

packages/ui/src/use-chat-scroll.ts:133–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131 root.dataset.turnWindow = 'ready';
132 arrivalPin.current?.release();
133 const prefetch = () => {
134 if (root.scrollTop <= Math.max(640, root.clientHeight * 2)) {
135 requestEarlierRef.current();
136 }
137 };
138 if (typeof window.requestIdleCallback === 'function') {
139 idle = window.requestIdleCallback(prefetch, { timeout: 250 });
140 } else {

Callers

nothing calls this directly

Calls 1

currentMethod · 0.65

Tested by

no test coverage detected