Skip to content

Commit

Permalink
fix(reset): fixed stale reference to snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewcourtice committed Dec 14, 2021
1 parent 14801c2 commit 033fbc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/reset/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function resetExtension<TState extends BaseState>() {
const source = branchCallback(snapshot);
const target = branchCallback(state);

overwrite(target, source, INTERNAL.pattern);
overwrite(target, clone(source), INTERNAL.pattern);
});
}

Expand Down

1 comment on commit 033fbc2

@vercel
Copy link

@vercel vercel bot commented on 033fbc2 Dec 14, 2021

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.