Skip to content

Commit

Permalink
Maintain existing overlay state when setting hash (#10495)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Mar 17, 2024
1 parent cf6ef84 commit 4e8600a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/hooks/use-overlay-state.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function useHashState<S extends string>(): [
if (!value) {
navigate(location.pathname);
} else {
navigate(`${location.pathname}#${value}`);
navigate(`${location.pathname}#${value}`, { state: location.state });
}
},
// we know that these deps are correct
Expand Down

0 comments on commit 4e8600a

Please sign in to comment.