StackedRouter: don't push frame if the stack empty
This commit is contained in:
parent
4d3f5c911b
commit
0a9d833f09
1 changed files with 4 additions and 1 deletions
|
@ -259,7 +259,10 @@ const StackedRouter: Component<StackedRouterProps> = (oprops) => {
|
|||
|
||||
createRenderEffect(() => {
|
||||
if (stack.length === 0) {
|
||||
pushFrame(window.location.pathname);
|
||||
mutStack(0, {
|
||||
path: window.location.pathname,
|
||||
rootId: createUniqueId(),
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue