Skip to content

🀯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

549 B
Raw Blame
export { settleWithin } from 'local-replica';

/**
 * Upper bound for a route loader's pre-paint hydrate.
 *
 * The read itself is not the risk: measured on the real storage path, a warm
 * IndexedDB read of a sidebar page (20 rows β‰ˆ 9 KB) is ~0.2–0.5 ms p50, the
 * first read of a cold page with an existing database ~1–10 ms, and creating
 * the database ~7–30 ms. The deadline only ever fires on a pathological storage
 * stall, so a route transition never waits longer than this for it.
 */
export const PRE_PAINT_HYDRATE_TIMEOUT = 50;