Skip to content

Commit bb6e706

Browse files
committed
use replaceState
1 parent 83d7593 commit bb6e706

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class Sandbox extends React.Component<SandboxProps, SandboxState> {
155155
const newRelativePathQuery =
156156
window.location.pathname + "?" + searchParams.toString();
157157

158-
window.history.pushState(null, "", newRelativePathQuery);
158+
window.history.replaceState(null, "", newRelativePathQuery);
159159
}
160160
}}
161161
/>

0 commit comments

Comments
 (0)