Skip to content

Commit 1e78e57

Browse files
committed
fix(platform): remount route when location's path change
1 parent d04f94f commit 1e78e57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/platform/src/app/Routes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ export const AppRoutes = React.memo(() => {
269269
title,
270270
}}
271271
>
272-
{element}
272+
<React.Fragment key={location.pathname}>{element}</React.Fragment>
273273
</RouteStateContext.Provider>
274274
);
275275
});

0 commit comments

Comments
 (0)