一键导入
vani-scheduling
Schedule explicit updates with microtasks and transitions
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Schedule explicit updates with microtasks and transitions
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create a tiny global store with explicit subscriptions
Updates Vani SPA app UI in src/spa-app, especially the landing page/homepage and landing examples. Use when the user mentions Vani SPA app, src/spa-app, landing page/homepage, or landing examples.
Mount Vani components inside existing apps or DOM islands
Build scalable lists with keyed rows and per-item updates
Create a minimal Vani SPA root with explicit updates
Implement SSR, hydration, and selective activation with Vani
| name | vani-scheduling |
| description | Schedule explicit updates with microtasks and transitions |
Instructions for batching updates across independent regions with predictable timing.
Use this when a UI has multiple regions that should update independently or when updates are expensive.
Handle.batch() to coalesce update scheduling in the same tick.queueMicrotask.startTransition() for non-urgent work to keep the UI responsive.['content'])true)scheduleRegionUpdate)Example 1 usage pattern:
Batch urgent updates in a microtask and update each region once per flush.
Example 2 usage pattern:
Defer expensive list filtering with startTransition().
Example output:
Created: src/scheduler.ts
Notes: Updates are deduplicated per region.
Explain the scheduling policy, which updates are urgent vs transition, and list changes.