Skip to content

feat(vue-query): minimal integrate with vue query by using queryOptions#47

Merged
dinwwwh merged 17 commits intomainfrom
feat/vue-query
Dec 11, 2024
Merged

feat(vue-query): minimal integrate with vue query by using queryOptions#47
dinwwwh merged 17 commits intomainfrom
feat/vue-query

Conversation

@dinwwwh
Copy link
Copy Markdown
Member

@dinwwwh dinwwwh commented Dec 10, 2024

Low level integration with tanstack query

const query = useQuery(orpc.ping.queryOptions())

const infinite = useInfiniteQuery(orpc.user.list.infiniteOptions({
      input: {},
      getNextPageParam: lastPage => lastPage.nextCursor,
}))

const mutation = useMutation(orpc.ping.mutationOptions())

// check if any mutation is running?
const isMutating = useIsMutating({mutationKey: orpc.key()})

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Dec 10, 2024

Deploying orpc with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2c5c872
Status: ✅  Deploy successful!
Preview URL: https://ee6b5950.orpc-1qh.pages.dev
Branch Preview URL: https://feat-vue-query.orpc-1qh.pages.dev

View logs

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Dec 10, 2024

Open in Stackblitz

More templates

@orpc/client

npm i https://pkg.pr.new/@orpc/client@47

@orpc/contract

npm i https://pkg.pr.new/@orpc/contract@47

@orpc/openapi

npm i https://pkg.pr.new/@orpc/openapi@47

@orpc/react

npm i https://pkg.pr.new/@orpc/react@47

@orpc/next

npm i https://pkg.pr.new/@orpc/next@47

@orpc/react-query

npm i https://pkg.pr.new/@orpc/react-query@47

@orpc/server

npm i https://pkg.pr.new/@orpc/server@47

@orpc/shared

npm i https://pkg.pr.new/@orpc/shared@47

@orpc/transformer

npm i https://pkg.pr.new/@orpc/transformer@47

@orpc/vue-query

npm i https://pkg.pr.new/@orpc/vue-query@47

@orpc/zod

npm i https://pkg.pr.new/@orpc/zod@47

commit: 2c5c872

@dinwwwh dinwwwh merged commit 2f8ca7f into main Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant