From 48cdfef5f65affd4a5a6b62cd4faa861ac5bac6d Mon Sep 17 00:00:00 2001 From: joostdecock Date: Sun, 6 Apr 2025 16:54:37 +0200 Subject: [PATCH] [react] fix: Use replaceState in hash. See #216 --- packages/react/components/Editor/hooks/useEditorState.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/components/Editor/hooks/useEditorState.mjs b/packages/react/components/Editor/hooks/useEditorState.mjs index e5e3c0bb97e..3a86e62292a 100644 --- a/packages/react/components/Editor/hooks/useEditorState.mjs +++ b/packages/react/components/Editor/hooks/useEditorState.mjs @@ -8,7 +8,7 @@ import { useMemo, useEffect } from 'react' /* * Set up the atom */ -const urlAtom = atomWithHash('s', {}) +const urlAtom = atomWithHash('s', { setHash: 'replaceState' }) /** * Url state backend