@dlyun/stores
v1.2.0
Published
用于多个 `app` 公用的状态管理包,继承了 `@dlyun-core/shared/stores` 的所有能力。业务上有通用的状态管理可以放在这里。
Readme
@dlyun/stores
用于多个 app 公用的状态管理包,继承了 @dlyun-core/shared/stores 的所有能力。业务上有通用的状态管理可以放在这里。
用法
添加依赖
# 进入目标应用目录,例如 apps/xxxx-app
# cd apps/xxxx-app
pnpm add @dlyun/stores使用
import { useUserStore } from '@dlyun/stores';