From 2884825f4c5ce2634dcfb993c0b2422da2560b81 Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Wed, 25 Mar 2026 10:22:17 +0100 Subject: [PATCH] app: Drop persistent docs position. This was very complicated, particularly between versions and tabs and windows, for something that offers only a minor convenience. This also makes it simpler to navigate to a particular page interactively by just setting the iframe URL, which is useful for interactive help from the block editor. --- src/app/App.tsx | 7 ++---- src/app/hooks.ts | 55 ------------------------------------------------ 2 files changed, 2 insertions(+), 60 deletions(-) delete mode 100644 src/app/hooks.ts diff --git a/src/app/App.tsx b/src/app/App.tsx index f99ee741..59929816 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -17,7 +17,7 @@ import StatusBar from '../status-bar/StatusBar'; import Toolbar from '../toolbar/Toolbar'; import Tour from '../tour/Tour'; import { isMacOS } from '../utils/os'; -import { useAppLastDocsPageSetting } from './hooks'; +import { docsDefaultPage } from './constants'; import { useI18n } from './i18n'; const Editor = React.lazy(async () => { @@ -48,7 +48,6 @@ const Terminal = React.lazy(async () => { const Docs: React.FunctionComponent = () => { const { setIsSettingShowDocsEnabled } = useSettingIsShowDocsEnabled(); - const { initialDocsPage, setLastDocsPage } = useAppLastDocsPageSetting(); return (