vue-pinia-best-practices

Pinia 最佳实践、常见陷阱和状态管理模式。

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "vue-pinia-best-practices" with this command: npx skills add hello-lizhihua/skills_zh-cn/hello-lizhihua-skills-zh-cn-vue-pinia-best-practices

Pinia 最佳实践、常见陷阱和状态管理模式。

Store 设置

  • 启动时出现 "getActivePinia was called" 错误 → 参见 pinia-no-active-pinia-error

  • Setup stores 在 DevTools 或 SSR 中丢失状态 → 参见 pinia-setup-store-return-all-state

响应式

  • Store 解构导致 UI 失去响应式更新 → 参见 pinia-store-destructuring-breaks-reactivity

  • Store 方法在模板调用中丢失上下文 → 参见 store-method-binding-parentheses

状态模式

  • 过滤器在刷新时重置或无法共享 → 参见 state-url-for-ephemeral-filters

  • 在没有 DevTools 或约定的情况下构建生产应用 → 参见 state-use-pinia-for-large-apps

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

vue-best-practices

No summary provided by upstream source.

Repository SourceNeeds Review
General

vue-options-api-best-practices

No summary provided by upstream source.

Repository SourceNeeds Review
General

vue-router-best-practices

No summary provided by upstream source.

Repository SourceNeeds Review