Skip to content

Commit

Permalink
docs: fix vue colada examples and sync docs title
Browse files Browse the repository at this point in the history
  • Loading branch information
unnoq committed Jan 1, 2025
1 parent 07423e6 commit 0f053ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions apps/content/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) {
Expand Down
8 changes: 4 additions & 4 deletions apps/content/content/docs/client/vue-colada.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const client = createORPCClient<typeof router>(orpcLink);
export const orpc = createORPCVueColadaUtils(client);

// @noErrors
orpc.getting.
orpc.getUser.
// ^|
```

Expand All @@ -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.

0 comments on commit 0f053ee

Please sign in to comment.