Skip to content

Commit 1ab4370

Browse files
committed
purge initial route cache
1 parent 48366ce commit 1ab4370

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

router/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ export const RouterHost = ({
6767
if (props?.redirect) {
6868
navigate(props.redirect);
6969
} else {
70+
// @ts-ignore
71+
delete globalX.__INITIAL_ROUTE__;
7072
setCurrent(
7173
<Shell {...props}>
7274
<module.default {...props?.props} />

0 commit comments

Comments
 (0)