adopted-ember-addons / adopted-ember-addons/ember-local-storage

Re-saving index key

未关闭
#323 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
question
主要语言
JavaScript
星标
220
派生
78
PR 合并指标
30 天内没有已合并 PR

描述

Using the LS adapter with Ember Data. On a fresh load, with records already saved in LS:

If I do localStorage.clear() and then save a record, both the record and the index key for that model type are saved to LS. If I repeat clearing and saving, the index key doesn´t save. Is there a way to force the index key to save - presume this is some sort of internal caching issue?

贡献指南

打开贡献指南

调研方向

Start by reproducing the behavior described for the LS adapter with records already saved in localStorage, repeating localStorage.clear() followed by a record save. Inspect how the adapter handles the model-type index key; done means both the record and its index key are saved after each repeated clear-and-save cycle.

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
frontend
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。