Skip to content

Commit

Permalink
feat(history-extension): added history details to vue devtools
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewcourtice committed Mar 20, 2023
1 parent f8f513d commit dacedd6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions extensions/history/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ export default function historyExtension<TState extends BaseState>(options?: Par

return (store: InternalStore<TState>) => {
store.register('extensions', 'history', () => _options);
store.register('history', 'details', () => ({
canUndo: canUndo(),
canRedo: canRedo(),
groups: historyState.groups,
}));

const {
startTrace,
Expand Down

0 comments on commit dacedd6

Please sign in to comment.