AGENT SKILL

devel-jb-pinia

--| | SSR | Server-side rendering, state hydration | [advanced-ssr](references/advanced-ssr.

License 许可
MIT
最近更新
2026-09-01
Stars
★ 0
Forks
0

01 前言 Front Matter

name
devel-jb-pinia
domain
cybersecurity
description
--| | SSR | Server-side rendering, state hydration | [advanced-ssr](references/advanced-ssr.

02 资源文件 12

03 SKILL.md 正文

--| | SSR | Server-side rendering, state hydration | advanced-ssr | | Nuxt | Nuxt integration, auto-imports, SSR best practices | advanced-nuxt | | HMR | Hot module replacement for development | advanced-hmr |

Key Recommendations

  • Prefer Setup Stores for complex logic, composables, and watchers
  • Use storeToRefs() when destructuring state/getters to preserve reactivity
  • Actions can be destructured directly - they're bound to the store
  • Call stores inside functions not at module scope, especially for SSR
  • Add HMR support to each store for better development experience
  • Use @pinia/testing for component tests with mocked stores

04 同仓库更多 Skills