multiplexStorage source of truth
@atk 已经在做这个了。
开始于 2026年7月5日。
评估
这个 Issue 还没有评估数据。
描述
Describe the bug
The docs for multiplexStorage state
For the getItem operation, the first storage that returns a valid value will be the source of truth.
But I am able to reproduce a scenario where the first storage has no value, the second storage has a value, but the value from the second storage is not used as the source of truth.
Steps to repro:
- Navigate to https://playground.solidjs.com/anonymous/f998757e-6b08-4054-9e7a-87a0b20902a7
- Verify that the counter button is set to
1 - Click the counter button once, incrementing it to
2 - Verify that the count in
localStoragehas been set to2 - Verify that the count in
indexedDB/localForagehas been set to2 - Refresh the page
- Verify that the counter button is still correctly set to
2 - Delete the
localStoragerecord forcount - Refresh the page
- Verify that the counter button is incorrectly set back to
1 - Verify that the count in
indexedDB/localForageis still set to2
This seems to show that the localForage storage option is not being used, despite being the only storage option returning a valid value.
Minimal Reproduction Link
https://playground.solidjs.com/anonymous/f998757e-6b08-4054-9e7a-87a0b20902a7
- 主要语言
- TypeScript
- 星标
- 1.6k
- 派生
- 162
- 平均合并
- 19 小时 40 分钟
- 30 天内合并 PR
- 8
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
solidjs-community/solid-primitives 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
solidjs-community/solid-primitives#1059 · 1 条评论 ·
-
bug
难度 3/5 1-2 天 新手友好度 68/100
-
enhancement
难度 4/5 3-5 天 新手友好度 48/100
-
bug
难度 3/5 1-2 天 新手友好度 55/100
solidjs-community/solid-primitives#1000 · 3 条评论 · 5 个 reaction ·
-
enhancement
难度 4/5 3-5 天 新手友好度 48/100
查看 solidjs-community/solid-primitives 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
bcgov/bc-wallet-mobile#4761 · 1 条评论 ·
-
external-issue to-triage
难度 2/5 1-3 小时 新手友好度 88/100
-
area-deployment area-integrations triage:bot-seen
难度 2/5 半天 新手友好度 86/100
-
难度 2/5 1-3 小时 新手友好度 82/100
-
refactor
难度 2/5 1-3 小时 新手友好度 84/100