Skip to content

Commit 16cd312

Browse files
committed
chore: replaceState
1 parent e1c43f7 commit 16cd312

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

web/src/Playground.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,15 @@ import { atomWithHash } from "jotai-location";
1010
import speakeasyWhiteLogo from "./assets/speakeasy-white.svg";
1111
import openapiLogo from "./assets/openapi.svg";
1212

13-
const originalOpenAPI = atomWithHash("originalOpenAPI", petstore);
14-
const changedOpenAPI = atomWithHash("changedOpenAPI", petstore);
15-
const overlay = atomWithHash("overlay", blankOverlay);
13+
const originalOpenAPI = atomWithHash("originalOpenAPI", petstore, {
14+
setHash: "replaceState",
15+
});
16+
const changedOpenAPI = atomWithHash("changedOpenAPI", petstore, {
17+
setHash: "replaceState",
18+
});
19+
const overlay = atomWithHash("overlay", blankOverlay, {
20+
setHash: "replaceState",
21+
});
1622

1723
function Playground() {
1824
const [ready, setReady] = useState(false);

0 commit comments

Comments
 (0)