Skip to content

Commit

Permalink
perf(desk-tool): always re-use same focus path instance
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Mar 4, 2021
1 parent 766ad10 commit d79a5da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export function DocumentPane(props: DocumentPaneProps) {

const handleFocus = useCallback(
(nextFocusPath: Path) => {
setFocusPath(nextFocusPath)
setFocusPath(PathUtils.pathFor(nextFocusPath))
setLocation([
{
type: 'document',
Expand Down

0 comments on commit d79a5da

Please sign in to comment.