Skip to content

Commit 3feaf8e

Browse files
committed
fix: should immediately assign routes
1 parent d746b2a commit 3feaf8e

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
@@ -161,9 +161,7 @@ export const routerPlugin = (
161161
},
162162
);
163163

164-
useEffect(() => {
165-
routesContainer.current = routes;
166-
}, [routes]);
164+
routesContainer.current = routes;
167165

168166
beforeCreateRouter = false;
169167

0 commit comments

Comments
 (0)