fix(react): Do a better job matching up route to sync, fixes #20363 (#20446)

This commit is contained in:
Ely Lucas
2020-02-11 16:40:38 -07:00
parent b6fbe98812
commit c0aadd6007
4 changed files with 24 additions and 4 deletions

View File

@ -32,7 +32,7 @@ class StackManagerInner extends React.Component<StackManagerProps, StackManagerS
}
static getDerivedStateFromProps(props: StackManagerProps, state: StackManagerState) {
props.routeManager.syncRoute('', props.children);
props.routeManager.syncRoute(props.children);
return state;
}