Can't add new keys to persisted stores - feature request for different defaults handing
维护者通常 1 天内回复
@atk 已经在做这个了。
开始于 2025年2月8日。
评估
这个 Issue 还没有评估数据。
描述
Describe the bug
const [,setStore] = makePersisted(createStore({a: 1}), {name: 'x'})
setStore({a: 2}) // trigger storage (because initial values are not persisted)
const [store2, setStore2] = makePersisted(createStore({a: 1, b: 1}), {name: 'x'})
console.log(Object.keys(store2)) // ['a']
I would expect ['a', 'b']
While I'm here: these stores are so useful and convenient! Thanks for this.
Minimal Reproduction Link
https://stackblitz.com/edit/github-cickt7r1?file=src%2Findex.tsx
- 主要语言
- TypeScript
- 星标
- 1.6k
- 派生
- 165
- 平均合并
- 1 天 17 小时
- 30 天内合并 PR
- 13
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
solidjs-community/solid-primitives 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
solidjs-community/solid-primitives#1059 · 1 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 4/5 3-5 天 新手友好度 48/100
solidjs-community/solid-primitives#1055 ·
维护者通常 1 天内回复
-
enhancement
难度 4/5 3-5 天 新手友好度 48/100
solidjs-community/solid-primitives#894 ·
维护者通常 1 天内回复
-
help wanted
难度 2/5 1-3 小时 新手友好度 52/100
solidjs-community/solid-primitives#830 · 2 条评论 ·
维护者通常 1 天内回复
-
help wanted
难度 3/5 1-2 天 新手友好度 48/100
solidjs-community/solid-primitives#806 · 1 条评论 · 2 个 reaction ·
维护者通常 1 天内回复
查看 solidjs-community/solid-primitives 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
ccch1mneyyy/dsh-TUI#1631 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
MiniMax-AI/minimax-code#507 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
-
Transient OAuth login failure persists in getLoginStatus and masks active account in dashboard可能重新可做 关联的 PR 已关闭且未合并。 未关闭account-pool bug gui
难度 2/5 1-3 小时 新手友好度 67/100
lidge-jun/opencodex#7378 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复