Skip to content

Commit 2212e2c

Browse files
committed
fix weird typing
1 parent 6dce86c commit 2212e2c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/components.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,8 @@ export const Routes = (props: RoutesProps) => {
148148
);
149149

150150
return (
151-
<Show when={routeStates() && root}>
152-
{
153-
((route: any) => (
154-
<RouteContextObj.Provider value={route}>{route.outlet()}</RouteContextObj.Provider>
155-
)) as JSX.FunctionElement
156-
}
151+
<Show when={routeStates() && root} keyed>
152+
{route => <RouteContextObj.Provider value={route}>{route.outlet()}</RouteContextObj.Provider>}
157153
</Show>
158154
);
159155
};

0 commit comments

Comments
 (0)