Commit 00065bc
docs(skill): document TSS-6 — one createServerFn per file (load-bearing on v1.167+)
The TanStack Start v1.167+ `tanstack-start-core:import-protection` Vite plugin walks the import graph and rejects any module reachable from a client route that imports `@tanstack/react-start/server` (even via dynamic await import). Housing multiple createServerFn surfaces alongside server-only helpers in a single file (the prior shape of `base-service.ts`) reliably trips this gate the moment ANY client module imports any one of those handlers.
The per-handler-file split this PR just landed is now documented as TSS-6 with a load-bearing tag, the failure-mode rationale, and pointers at the canonical files (find-first.ts, find-many.ts, create-entity.ts, update-entity.ts, delete-entity.ts + the slimmed base-service.ts).
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 33faa05 commit 00065bc
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
28 | 38 | | |
29 | 39 | | |
30 | 40 | | |
| |||
34 | 44 | | |
35 | 45 | | |
36 | 46 | | |
| 47 | + | |
37 | 48 | | |
38 | 49 | | |
39 | 50 | | |
| |||
0 commit comments