0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/e2e/solid-start/server-functions
Brenley Dueck d3310dcb43 wip(solid-start): back createServerFn with vite-plugin-solid native server functions
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 2026-07-23 18:07:04 -05:00
..
.devcontainer docs: add devcontainer.json to all e2e/examples (#6972) 2026-03-18 15:43:14 +01:00
public SolidJS driver for TanStack Start (#3522) 2025-03-01 13:38:00 +01:00
src Merge branch 'main' into solid-router-main-merge2 2026-06-13 15:54:31 -05:00
tests wip(solid-start): back createServerFn with vite-plugin-solid native server functions 2026-07-23 18:07:04 -05:00
.gitignore feat: Merge alpha to main (#4365) 2025-06-10 23:19:32 +02:00
.prettierignore SolidJS driver for TanStack Start (#3522) 2025-03-01 13:38:00 +01:00
package.json Upgrade solidjs beta 25 (#7888) 2026-07-23 23:17:19 +02:00
playwright.config.ts test(e2e): use locally hosted api over an external provider (#4725) 2025-07-22 00:15:28 +02:00
tsconfig.json chore: bump to solid v2 beta 10 (#7284) 2026-04-30 11:33:46 +02:00
vite.config.ts docs: update examples/e2e to vite 8 (#6958) 2026-03-17 20:37:11 +01:00