Skip to content

Commit 660ab8f

Browse files
committed
outlet fix
1 parent 6e28dab commit 660ab8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/routers/components.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function Routes(props: { routerState: RouterContext; branches: Branch[] }) {
157157
root = next[0];
158158
return next;
159159
}, undefined);
160-
return createOutlet(() => routeStates() && root)();
160+
return createMemo(createOutlet(() => routeStates() && root)) as unknown as JSX.Element;
161161
}
162162

163163
const createOutlet = (child: () => RouteContext | undefined) => {

0 commit comments

Comments
 (0)