diff --git a/hydrate.tsx b/hydrate.tsx index cb0b18f..031f58a 100644 --- a/hydrate.tsx +++ b/hydrate.tsx @@ -28,7 +28,10 @@ export async function hydrate( return hydrateRoot( document, - + , diff --git a/index.tsx b/index.tsx index 4891f55..5f86dfb 100644 --- a/index.tsx +++ b/index.tsx @@ -89,7 +89,7 @@ export class StaticRouters { }); } const stream = await renderToReadableStream( - + , { diff --git a/router/index.tsx b/router/index.tsx index 0fe99ac..1398670 100644 --- a/router/index.tsx +++ b/router/index.tsx @@ -69,7 +69,7 @@ export const RouterHost = ({ onRouteUpdated, }: { children: React.ReactElement; - Shell: React.ComponentType<{ children: React.ReactElement }>; + Shell: React.ComponentType<{ children: React.ReactElement; route?: string }>; onRouteUpdated?: (path: string) => void; }) => { const pathname = useLocationProperty( @@ -95,7 +95,7 @@ export const RouterHost = ({ onRouteUpdated?.(target); setVersion(currentVersion); setCurrent( - + );