diff --git a/packages/runtime/src/runClientApp.tsx b/packages/runtime/src/runClientApp.tsx index 2fc9336c63..e264f7aa9f 100644 --- a/packages/runtime/src/runClientApp.tsx +++ b/packages/runtime/src/runClientApp.tsx @@ -214,16 +214,16 @@ function BrowserEntry({ currentMatches, routeState, ).then(({ routesData, routesConfig, routeModules }) => { - setHistoryState({ - action, - location, - }); setRouteState({ routesData, routesConfig, matches: currentMatches, routeModules, }); + setHistoryState({ + action, + location, + }); }); }); }