mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
Highly experimental: replaces TanStack's split server-fn transport for Solid Start with vite-plugin-solid ^3.0.0-next.16's native "use server" pipeline + the @solidjs/web/server-functions runtime, keeping the public createServerFn().validator().middleware().handler() API intact. React (and other frameworks) stay on the split transport. - start-plugin-core: new serverFnTransport: 'directive' option; compiler emits "use server" trampolines instead of splitting modules; dispatch now flows through #tanstack-start-server-fn-dispatch (package-imports default = split transport, virtual override for directive mode) - solid-start: appends the standalone serverFunctions() plugins, new createDirectiveClientRpc/createDirectiveServerRpc transports and createTanStackDispatchOptions wiring TanStack codec/result semantics into handleServerFunctionRequest - TanStack owns the wire ids (split-safe, generateFunctionId honored) and registers them via the runtime's public registerServerFunction — vite-plugin-solid's path+ordinal ids collide across router code-split modules and stay internal-only - registration coverage via pruned ?tss-serverfn-split provider modules (dynamic imports; "sideEffects": false tree-shakes static ones) - no-JS urlencoded form posts normalized back to FormData e2e: solid-start/server-functions 28 passed (2 assertions adapted to the new wire format), solid-start/basic 80 passed, react-start/ server-functions 53 passed; unit suites green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
History
|
|
|---|---|---|
| .. | ||
| skills | ||
| src | ||
| CHANGELOG.md | ||
| eslint.config.js | ||
| package.json | ||
| README.md | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
| tsconfig.server-entry.json | ||
| vite.config.server-entry.ts | ||
| vite.config.ts | ||
TanStack Solid Start
SSR, Streaming, Server Functions, API Routes, bundling and more powered by TanStack Router and Vite. Ready to deploy to your favorite hosting provider.
Enjoy this library? Try the entire TanStack! Solid Query, Solid Table, Solid Virtual
Visit tanstack.com/start for docs, guides, API and more!
