Repository navigation
v2.0.0-next.27
Pre-release
Pre-release
·
8 commits
to main
since this release
Minor Changes
- 4067379: Add
serverRouteComponent(experimental): use a server component — a"use server"function that returns a component — as a route'scomponentdirectly, with no client wrapper. The router derives the call's arguments from the match (paramsfor this route's pattern and its ancestors', never a child's;searchonly when the route declares a schema), mounts the resolved component with the outlet aschildren, and drives the same call from link-intent preload and the single-flight collector, so onequeryentry serves render, preload, and mutation responses.childrenis the only client position the router fills; a server component requiring other client props is rejected at the type level — that route has a client half and stays an ordinary route component. New types:ServerRouteArgs,ServerRouteFunction. Apps that never call the helper pull in none of it: the router core reads only a brand off the route component.