Loading...
Loading...
Compare original and translation side by side
The skill is based on Pinia v3.0.4, generated at 2026-01-28.
本技能基于Pinia v3.0.4,生成于2026年1月28日。
| Topic | Description | Reference |
|---|---|---|
| Stores | Defining stores, state, getters, actions, storeToRefs, subscriptions | core-stores |
| 主题 | 描述 | 参考链接 |
|---|---|---|
| Stores | 定义store、state、getters、actions,storeToRefs,订阅 | core-stores |
| Topic | Description | Reference |
|---|---|---|
| Plugins | Extend stores with custom properties, state, and behavior | features-plugins |
| 主题 | 描述 | 参考链接 |
|---|---|---|
| Plugins | 使用自定义属性、状态和行为扩展store | features-plugins |
| Topic | Description | Reference |
|---|---|---|
| Composables | Using Vue composables within stores (VueUse, etc.) | features-composables |
| Composing Stores | Store-to-store communication, avoiding circular dependencies | features-composing-stores |
| 主题 | 描述 | 参考链接 |
|---|---|---|
| Composables | 在store中使用Vue组合式函数(如VueUse等) | features-composables |
| Composing Stores | Store间通信,避免循环依赖 | features-composing-stores |
| Topic | Description | Reference |
|---|---|---|
| Testing | Unit testing with @pinia/testing, mocking, stubbing | best-practices-testing |
| Outside Components | Using stores in navigation guards, plugins, middlewares | best-practices-outside-component |
| 主题 | 描述 | 参考链接 |
|---|---|---|
| Testing | 使用@pinia/testing进行单元测试、模拟、存根 | best-practices-testing |
| Outside Components | 在导航守卫、插件、中间件中使用store | best-practices-outside-component |
| Topic | Description | Reference |
|---|---|---|
| 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 |
| 主题 | 描述 | 参考链接 |
|---|---|---|
| SSR | 服务端渲染、状态水合 | advanced-ssr |
| Nuxt | Nuxt集成、自动导入、SSR最佳实践 | advanced-nuxt |
| HMR | 开发环境下的热模块替换 | advanced-hmr |
storeToRefs()@pinia/testingstoreToRefs()@pinia/testing