Skip to content

Commit eb6bc7c

Browse files
authored
fix: should immediately assign routes (#7928)
1 parent f90f4e6 commit eb6bc7c

File tree

1 file changed

+1
-3
lines changed
  • packages/runtime/plugin-runtime/src/router/runtime

1 file changed

+1
-3
lines changed

packages/runtime/plugin-runtime/src/router/runtime/plugin.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,7 @@ export const routerPlugin = (
177177
}, []);
178178
const { routes } = routerResult;
179179

180-
useEffect(() => {
181-
routesContainer.current = routes;
182-
}, [routes]);
180+
routesContainer.current = routes;
183181

184182
beforeCreateRouter = false;
185183

0 commit comments

Comments
 (0)