diff --git a/src/platform/StackedRouter.tsx b/src/platform/StackedRouter.tsx index 07b3526..bc3e948 100644 --- a/src/platform/StackedRouter.tsx +++ b/src/platform/StackedRouter.tsx @@ -259,7 +259,10 @@ const StackedRouter: Component = (oprops) => { createRenderEffect(() => { if (stack.length === 0) { - pushFrame(window.location.pathname); + mutStack(0, { + path: window.location.pathname, + rootId: createUniqueId(), + }); } });