From 80834ef1219876cff644aed8d3ff452416837696 Mon Sep 17 00:00:00 2001 From: bot-hermes Date: Tue, 28 Jul 2026 13:54:18 +0000 Subject: [PATCH] fix: notes page fetches domains on mount for domain name resolution --- apps/web/app/(dashboard)/notes/page.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/app/(dashboard)/notes/page.tsx b/apps/web/app/(dashboard)/notes/page.tsx index fa6e423..df2e1b1 100644 --- a/apps/web/app/(dashboard)/notes/page.tsx +++ b/apps/web/app/(dashboard)/notes/page.tsx @@ -80,14 +80,14 @@ export default function NotesPage() { const saveTimer = useRef | null>(null); const saveVersion = useRef(0); - useEffect(() => { + useEffect(() => { fetchDomains(); fetchNotes(); return () => { if (saveTimer.current) clearTimeout(saveTimer.current); }; }, []); - useEffect(() => { + useEffect(() => { fetchDomains(); if (new URLSearchParams(window.location.search).get('new') !== 'true' || createdFromQuery.current) return; createdFromQuery.current = true; createNote().finally(() => window.history.replaceState(null, '', '/notes')); @@ -95,7 +95,7 @@ export default function NotesPage() { // eslint-disable-next-line react-hooks/exhaustive-deps }, []); - useEffect(() => { + useEffect(() => { fetchDomains(); if (selectedNote) { fetchBacklinks(selectedNote.id); }