RPC work
This commit is contained in:
@@ -9,6 +9,9 @@
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tanstack/react-query": "4",
|
||||
"@trpc/client": "^10.45.2",
|
||||
"@trpc/react-query": "^10.45.2",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1"
|
||||
},
|
||||
|
||||
5
packages/webui/src/trpc/trpc.ts
Normal file
5
packages/webui/src/trpc/trpc.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import type { Router } from "@todo-tests/common/rpc"
|
||||
import { createTRPCReact } from "@trpc/react-query"
|
||||
|
||||
|
||||
export const trpc = createTRPCReact<Router>()
|
||||
Reference in New Issue
Block a user