ali-master/skills/orpc-tanstack-query-basic

Claude Code and agent skill by ali-master/skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Basic guide to integrating oRPC with TanStack Query (legacy).

Install

npx vskill@latest install ali-master/skills/orpc-tanstack-query-basic

SKILL.md

The same SKILL.md was published earlier as ali-master/skills/orpc-tanstack-query-basic.

TanStack Query Integration (Basic)

Lightweight integration with TanStack Query.

LibraryTanstack QueryoRPC Integration
React✅✅
Vue✅✅
Angular✅✅ (New only)
Solid✅✅
Svelte✅✅

Query Options

ts
const query = useQuery(orpc.planet.find.queryOptions({
input: { id: 123 },
context: { cache: true },
}))

Infinite Query Options

ts
const query = useInfiniteQuery(orpc.planet.list.infiniteOptions({
input: (pageParam: number | undefined) => ({ limit: 10, offset: pageParam }),
context: { cache: true },
initialPageParam: undefined,
getNextPageParam: lastPage => lastPage.nextPageParam,
}))

Mutation Options

ts
const mutation = useMutation(orpc.planet.create.mutationOptions({
context: { cache: true },
}))
mutation.mutate({ name: 'Earth' })

Query/Mutation Key

ts
const queryClient = useQueryClient()
queryClient.invalidateQueries({ queryKey: orpc.planet.key() })
queryClient.invalidateQueries({ queryKey: orpc.planet.key({ type: 'query' }) })
queryClient.invalidateQueries({ queryKey: orpc.planet.find.key({ input: { id: 123 } }) })

Calling Procedure Clients

ts
const result = orpc.planet.find.call({ id: 123 })

Error Handling

ts
import { isDefinedError } from '@orpc/client'
const mutation = useMutation(orpc.planet.create.mutationOptions({
onError: (error) => {
if (isDefinedError(error)) {
// Handle the error
}
}
}))

skipToken for Disabling Queries

ts
const query = useQuery(
orpc.planet.list.queryOptions({
input: search ? { search } : skipToken,
})
)

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
9
7-day trend score
17

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ali-master/skills/orpc-tanstack-query-basic/badge)](https://verified-skill.com/skills/ali-master/skills/orpc-tanstack-query-basic)

Something wrong with this skill or its page? Tell us.