adopted-ember-addons / adopted-ember-addons/validated-changeset

Store "transactions" to enable undo/redo history

Abierto
#145 1 comentario 1 reacción 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
38
Forks
27
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.