From 3d393361f9d15490b9d7ea3eed227a7452aab362 Mon Sep 17 00:00:00 2001 From: wangyiming Date: Thu, 27 Nov 2025 13:01:39 +0800 Subject: [PATCH] fix: should immediately assign routes --- packages/runtime/plugin-runtime/src/router/runtime/plugin.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/runtime/plugin-runtime/src/router/runtime/plugin.tsx b/packages/runtime/plugin-runtime/src/router/runtime/plugin.tsx index 07be71095e24..6f9b7834852b 100644 --- a/packages/runtime/plugin-runtime/src/router/runtime/plugin.tsx +++ b/packages/runtime/plugin-runtime/src/router/runtime/plugin.tsx @@ -177,9 +177,7 @@ export const routerPlugin = ( }, []); const { routes } = routerResult; - useEffect(() => { - routesContainer.current = routes; - }, [routes]); + routesContainer.current = routes; beforeCreateRouter = false;