From 0f053ee350dd845dac6504a8caac362807998034 Mon Sep 17 00:00:00 2001 From: unnoq Date: Wed, 1 Jan 2025 10:20:54 +0700 Subject: [PATCH] docs: fix vue colada examples and sync docs title --- apps/content/app/layout.tsx | 4 ++-- apps/content/content/docs/client/vue-colada.mdx | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/content/app/layout.tsx b/apps/content/app/layout.tsx index a6d43efb..a46e7a34 100644 --- a/apps/content/app/layout.tsx +++ b/apps/content/app/layout.tsx @@ -10,11 +10,11 @@ import 'fumadocs-twoslash/twoslash.css' export const metadata: Metadata = { metadataBase: new URL('https://orpc.unnoq.com'), title: { - default: 'oRPC - End-to-End Typesafe API Builder for Developers', + default: `oRPC - Typesafe API's Made Simple 🪄`, template: '%s - oRPC', }, description: - 'oRPC is an open-source toolkit that helps developers build robust TypeScript functions and expose them to the internet using typesafe clients, OpenAPI standards, or even server actions. Our focus is on developer experience, performance, and reliability.', + `End-to-End Typesafe API's made easy in a toolkit that helps developers build robust TypeScript API's with a focus on developer experience, reliability.`, } export default function Layout({ children }: { children: React.ReactNode }) { diff --git a/apps/content/content/docs/client/vue-colada.mdx b/apps/content/content/docs/client/vue-colada.mdx index a1a36102..a1dd715a 100644 --- a/apps/content/content/docs/client/vue-colada.mdx +++ b/apps/content/content/docs/client/vue-colada.mdx @@ -30,7 +30,7 @@ export const client = createORPCClient(orpcLink); export const orpc = createORPCVueColadaUtils(client); // @noErrors -orpc.getting. +orpc.getUser. // ^| ``` @@ -57,15 +57,15 @@ import { useMutation, useQuery, useQueryCache } from '@pinia/colada' import { orpc } from 'examples/vue-colada' // Fetch data -const { data: gettingData } = useQuery(orpc.getting.queryOptions({ input: { name: 'unnoq' } })) +const { data: gettingData } = useQuery(orpc.getUser.queryOptions({ input: { id: '123' } })) // Perform mutations -const { mutate: postMutate } = useMutation(orpc.post.create.mutationOptions()) +const { mutate: postMutate } = useMutation(orpc.posts.createPost.mutationOptions()) // Invalidate queries const queryCache = useQueryCache() queryCache.invalidateQueries({ key: orpc.key() }) // Invalidate all queries -queryCache.invalidateQueries({ key: orpc.post.find.key({ input: { id: 'example' } }) }) // Specific queries +queryCache.invalidateQueries({ key: orpc.posts.getPost.key({ input: { id: 'example' } }) }) // Specific queries ``` > **Note**: This library enhances [Pinia Colada](https://pinia-colada.esm.dev/) by managing keys and functions for you, providing a seamless developer experience.