Recording a navigable history of the stream of states
// main.ts
import { Aurelia } from 'aurelia-framework';
import { initialState } from './state';
export function configure(aurelia: Aurelia) {
aurelia.use
.standardConfiguration()
.feature('resources');
// ... other configuration ...
aurelia.use.plugin('aurelia-store', {
initialState,
history: {
undoable: true, // Enable history tracking
},
});
aurelia.start().then(() => aurelia.setRoot());
}The StateHistory<T> Object
Last updated
Was this helpful?