From 0c33d4ccae3097dace2adc3725ed293d7e8389cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B4mulo=20Penido?= Date: Thu, 16 Jan 2025 11:52:08 -0300 Subject: [PATCH] fix: prevent LibraryLayout remount --- src/library-authoring/LibraryLayout.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/library-authoring/LibraryLayout.tsx b/src/library-authoring/LibraryLayout.tsx index c093af7ad..fbde426c5 100644 --- a/src/library-authoring/LibraryLayout.tsx +++ b/src/library-authoring/LibraryLayout.tsx @@ -23,12 +23,8 @@ const LibraryLayout = () => { throw new Error('Error: route is missing libraryId.'); } - const location = useLocation(); const context = useCallback((childPage) => ( { - ), [location.pathname]); + ), []); return (