File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
packages/runtime/plugin-runtime/src/router/runtime
tests/integration/rsc-ssr-app/src/client-component-root Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,7 @@ import type {
1717 MouseEventHandler ,
1818 TouchEventHandler ,
1919} from 'react' ;
20- import { RuntimeContext } from '../../core' ;
21- import type { TInternalRuntimeContext } from '../../core/context/runtime' ;
20+ import { InternalRuntimeContext } from '../../core/context' ;
2221import type { RouteAssets , RouteManifest } from './types' ;
2322
2423interface PrefetchHandlers {
@@ -188,7 +187,7 @@ const getDataHref = (
188187
189188const PrefetchPageLinks : React . FC < { path : Path } > = ( { path } ) => {
190189 const { pathname } = path ;
191- const context = useContext ( RuntimeContext ) as TInternalRuntimeContext ;
190+ const context = useContext ( InternalRuntimeContext ) ;
192191 const { routeManifest, routes } = context ;
193192 const { routeAssets } = routeManifest || { } ;
194193 const matches = Array . isArray ( routes ) ? matchRoutes ( routes , pathname ) : [ ] ;
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ const App = () => {
5353 < div className = "container" >
5454 < main >
5555 < div className = "user-agent" >
56- { typeof context . ssrContext ?. request ?. userAgent }
56+ { typeof context . context ?. request ?. userAgent }
5757 </ div >
5858 < div className = "logo" >
5959 < img
You can’t perform that action at this time.
0 commit comments