Skip to content

Commit a8a32b9

Browse files
committed
v0.8.2
1 parent 27d952c commit a8a32b9

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"Ryan Turnquist"
77
],
88
"license": "MIT",
9-
"version": "0.8.1",
9+
"version": "0.8.2",
1010
"homepage": "https://github.com/solidjs/solid-router#readme",
1111
"repository": {
1212
"type": "git",

src/components.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,8 @@ export const Route = <S extends string>(props: RouteProps<S>) => {
187187
export const Outlet = () => {
188188
const route = useRoute();
189189
return (
190-
<Show when={route.child}>
191-
{
192-
((child: any) => (
193-
<RouteContextObj.Provider value={child}>{child.outlet()}</RouteContextObj.Provider>
194-
)) as JSX.FunctionElement
195-
}
190+
<Show when={route.child} keyed>
191+
{child => <RouteContextObj.Provider value={child}>{child.outlet()}</RouteContextObj.Provider>}
196192
</Show>
197193
);
198194
};

0 commit comments

Comments
 (0)