adopted-ember-addons / adopted-ember-addons/validated-changeset
Store "transactions" to enable undo/redo history
- 主要语言
- TypeScript
- 星标
- 38
- 派生
- 27
- PR 合并指标
- 30 天内没有已合并 PR
描述
Kind of based off of the data structure in https://github.com/validated-changeset/validated-changeset/issues/144
It could be good to record "transactions" every time execute is called, effectively storing that current/original object from #144 as a type-of-snapshot each time execute is called. Or maybe it'd look like:
```js
changeset.transactions
// returns =>
[
{
executedAt: timestamp,
snapshot: (existing snapshot)
changes: {
key: { original, current }
}
},
{
executedAt: timestamp,
snapshot: (existing snapshot)
changes: {
key: { original, current }
}
}
// ....
]
```
This would enable undo/redo history
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。