Skip to content

Commit

Permalink
fix(platform): remount route when location's path change
Browse files Browse the repository at this point in the history
  • Loading branch information
xiejay97 committed Jan 10, 2023
1 parent d04f94f commit 1e78e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/platform/src/app/Routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export const AppRoutes = React.memo(() => {
title,
}}
>
{element}
<React.Fragment key={location.pathname}>{element}</React.Fragment>
</RouteStateContext.Provider>
);
});

0 comments on commit 1e78e57

Please sign in to comment.