Skip to content

Commit

Permalink
Merge pull request #83 from andrewcourtice/feat/history-devtools
Browse files Browse the repository at this point in the history
Added history details to Vue devtools
  • Loading branch information
andrewcourtice committed Mar 20, 2023
2 parents f8f513d + dacedd6 commit d6463a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions extensions/history/src/index.ts
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

1 comment on commit d6463a9

@vercel
Copy link

@vercel vercel bot commented on d6463a9 Mar 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.