File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change @@ -187,12 +187,8 @@ export const Route = <S extends string>(props: RouteProps<S>) => {
187187export 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} ;
You can’t perform that action at this time.
0 commit comments