vani-scheduling
Installation
SKILL.md
Scheduling Updates
Instructions for batching updates across independent regions with predictable timing.
When to Use
Use this when a UI has multiple regions that should update independently or when updates are expensive.
Steps
- Assign each UI region its own
Handle. - Use
batch()to coalesce update scheduling in the same tick. - Create a scheduler that batches updates with
queueMicrotask. - Use
startTransition()for non-urgent work to keep the UI responsive. - Deduplicate updates per region within a single flush.
Arguments
Related skills
More from itsjavi/vani
vani-spa-setup
Create a minimal Vani SPA root with explicit updates
8vani-jsx-setup
Configure and use JSX with Vani while keeping runtime behavior explicit
8vani-spa-app
Updates Vani SPA app UI in src/spa-app, especially the landing page/homepage and landing examples.
8vani-ssr-hydration
Implement SSR, hydration, and selective activation with Vani
8vani-async-client-only
Use async components, fallbacks, and client-only islands
8vani-incremental-mount
Mount Vani components inside existing apps or DOM islands
8