We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27d952c commit a8a32b9Copy full SHA for a8a32b9
2 files changed
package.json
@@ -6,7 +6,7 @@
6
"Ryan Turnquist"
7
],
8
"license": "MIT",
9
- "version": "0.8.1",
+ "version": "0.8.2",
10
"homepage": "https://github.com/solidjs/solid-router#readme",
11
"repository": {
12
"type": "git",
src/components.tsx
@@ -187,12 +187,8 @@ export const Route = <S extends string>(props: RouteProps<S>) => {
187
export const Outlet = () => {
188
const route = useRoute();
189
return (
190
- <Show when={route.child}>
191
- {
192
- ((child: any) => (
193
- <RouteContextObj.Provider value={child}>{child.outlet()}</RouteContextObj.Provider>
194
- )) as JSX.FunctionElement
195
- }
+ <Show when={route.child} keyed>
+ {child => <RouteContextObj.Provider value={child}>{child.outlet()}</RouteContextObj.Provider>}
196
</Show>
197
);
198
};
0 commit comments