Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 17 commits into from
Dec 11, 2024

Conversation

unnoq
Copy link
Owner

@unnoq unnoq 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()})

Copy link

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

Copy link

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

@unnoq unnoq merged commit 2f8ca7f into main Dec 11, 2024
6 of 8 checks passed
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