원클릭으로
vani-global-store
Create a tiny global store with explicit subscriptions
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Create a tiny global store with explicit subscriptions
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
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
Schedule explicit updates with microtasks and transitions
Create a minimal Vani SPA root with explicit updates
Implement SSR, hydration, and selective activation with Vani
| name | vani-global-store |
| description | Create a tiny global store with explicit subscriptions |
Instructions for implementing a small store and wiring components to it.
Use this when multiple components need shared state without implicit reactivity by default.
getState, setState, and subscribe.handle.onBeforeMount() to subscribe once.handle.update() from the subscription.{})src/store.ts)App)Example 1 usage pattern:
Create a counter store and a component that reads getState() during render.
Example 2 usage pattern:
Expose a setState command and update UI through subscriptions only.
Example output:
Created: src/store.ts
Updated: src/counter.ts
Notes: handle.onBeforeMount() subscribes once and updates explicitly.
Summarize store API, subscription wiring, and files changed.