slevisp

solidjs-state

slevisp

A tiny SolidJS state helper that unifies createSignal and createStore behind one createState API with typed selectors.

AI 简介

这是一个为 SolidJS 设计的轻量级状态管理辅助库,统一封装 createSignal 和 createStore,根据初始值类型自动选择底层实现,并提供一致的 state() 读取接口及类型安全的选择器支持。核心特性包括:自动判别基础类型与对象/数组并选用对应 Solid 原语、支持基于 selector 的响应式派生读取、零运行时依赖(仅依赖 SolidJS)、完整 TypeScript 类型推导。适用于需要简化状态创建逻辑、兼顾简单值与嵌套对象响应式更新的 SolidJS 应用开发场景。

TypeScript
MIT License
103
Stars
5
Forks
3
Watchers
0
Issues

Star 增长

今日0
近 7 天0
近 30 天0
综合评分42.33
默认分支main