Commit 9738b2f
committed
fix: drop dead imports from the generated tRPC integration
api.trpc.$.tsx imports createServerFileRoute from
'@tanstack/react-start/server'. The route already uses
`createFileRoute(...)({ server: { handlers } })`, and that symbol is no longer
exported, so the import is both unused (TS6133) and unresolvable (TS2305).
The tRPC branch of root-provider.tsx imports QueryClientProvider but renders
TRPCProvider; setupRouterSsrQueryIntegration is what supplies the query
client.
Generated projects set `noUnusedLocals: true`, so both surface as errors in a
fresh `--add-ons tanstack-query,tRPC` scaffold.1 parent b1684db commit 9738b2f
3 files changed
Lines changed: 13 additions & 2 deletions
File tree
- .changeset
- packages/create/src/frameworks/react/add-ons
- tRPC/assets/src/routes
- tanstack-query/assets/src/integrations/tanstack-query
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments