Skip to content

Commit

Permalink
fix: fix: the error of switching route in react 16 #5739 (#5741)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertXiao1994 authored Dec 22, 2022
1 parent 6892bca commit 0641a5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/runtime/src/runClientApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,16 +214,16 @@ function BrowserEntry({
currentMatches,
routeState,
).then(({ routesData, routesConfig, routeModules }) => {
setHistoryState({
action,
location,
});
setRouteState({
routesData,
routesConfig,
matches: currentMatches,
routeModules,
});
setHistoryState({
action,
location,
});
});
});
}
Expand Down

0 comments on commit 0641a5d

Please sign in to comment.