discord-questions.trpc.io/m/1389239840993968148

Preview meta tags from the discord-questions.trpc.io website.

Linked Hostnames

5

Thumbnail

Search Engine Appearance

Google

https://discord-questions.trpc.io/m/1389239840993968148

can I use useUtils hook in trpc 11 ? - tRPC

```tsx export const usePublicBlogs = () => { const trpc = useTRPC(); return trpc.blogs.getPublicBlogs.queryOptions(); };``` ```tsx const { data: blogPosts, isLoading, error } = usePublicBlogs(); ``` this is my trpc query, trpc query dont provide data, isLoading or error ```tsx Property 'data' does not exist on type 'UnusedSkipTokenTRPCQueryOptionsOut<{ id: string; title: string; content: string; excerpt: string | null; author: string; category: string; readTime: string; status: string; isFeatured: boolean; image: string | null; createdAt: Date; updatedAt: Date; }[], { ...; }[], TRPCClientErrorLike<...>>'.ts(2339) ``` also i want to invalidate my queries for example invalidate fetching posts query when doing a mutation (IN THE NEW WAY) ```tsx await utils.blogs.getBlogs.invalidate(); ``` ```tsx Property 'invalidate' does not exist on type 'DecorateQueryProcedure<{ input: void; output: { id: string; title: string; content: string; excerpt: string | null; author: string; category: string; readTime: string; status: string; isFeatured: boolean; image: string | null; createdAt: Date; updatedAt: Date; }[]; transformer: true; errorShape: DefaultErrorShape; }...'.ts(2339) ```



Bing

can I use useUtils hook in trpc 11 ? - tRPC

https://discord-questions.trpc.io/m/1389239840993968148

```tsx export const usePublicBlogs = () => { const trpc = useTRPC(); return trpc.blogs.getPublicBlogs.queryOptions(); };``` ```tsx const { data: blogPosts, isLoading, error } = usePublicBlogs(); ``` this is my trpc query, trpc query dont provide data, isLoading or error ```tsx Property 'data' does not exist on type 'UnusedSkipTokenTRPCQueryOptionsOut<{ id: string; title: string; content: string; excerpt: string | null; author: string; category: string; readTime: string; status: string; isFeatured: boolean; image: string | null; createdAt: Date; updatedAt: Date; }[], { ...; }[], TRPCClientErrorLike<...>>'.ts(2339) ``` also i want to invalidate my queries for example invalidate fetching posts query when doing a mutation (IN THE NEW WAY) ```tsx await utils.blogs.getBlogs.invalidate(); ``` ```tsx Property 'invalidate' does not exist on type 'DecorateQueryProcedure<{ input: void; output: { id: string; title: string; content: string; excerpt: string | null; author: string; category: string; readTime: string; status: string; isFeatured: boolean; image: string | null; createdAt: Date; updatedAt: Date; }[]; transformer: true; errorShape: DefaultErrorShape; }...'.ts(2339) ```



DuckDuckGo

https://discord-questions.trpc.io/m/1389239840993968148

can I use useUtils hook in trpc 11 ? - tRPC

```tsx export const usePublicBlogs = () => { const trpc = useTRPC(); return trpc.blogs.getPublicBlogs.queryOptions(); };``` ```tsx const { data: blogPosts, isLoading, error } = usePublicBlogs(); ``` this is my trpc query, trpc query dont provide data, isLoading or error ```tsx Property 'data' does not exist on type 'UnusedSkipTokenTRPCQueryOptionsOut<{ id: string; title: string; content: string; excerpt: string | null; author: string; category: string; readTime: string; status: string; isFeatured: boolean; image: string | null; createdAt: Date; updatedAt: Date; }[], { ...; }[], TRPCClientErrorLike<...>>'.ts(2339) ``` also i want to invalidate my queries for example invalidate fetching posts query when doing a mutation (IN THE NEW WAY) ```tsx await utils.blogs.getBlogs.invalidate(); ``` ```tsx Property 'invalidate' does not exist on type 'DecorateQueryProcedure<{ input: void; output: { id: string; title: string; content: string; excerpt: string | null; author: string; category: string; readTime: string; status: string; isFeatured: boolean; image: string | null; createdAt: Date; updatedAt: Date; }[]; transformer: true; errorShape: DefaultErrorShape; }...'.ts(2339) ```

  • General Meta Tags

    6
    • title
      can I use useUtils hook in trpc 11 ? - tRPC
    • charset
      utf-8
    • viewport
      width=device-width, initial-scale=1
    • next-size-adjust
    • description
      ```tsx export const usePublicBlogs = () => { const trpc = useTRPC(); return trpc.blogs.getPublicBlogs.queryOptions(); };``` ```tsx const { data: blogPosts, isLoading, error } = usePublicBlogs(); ``` this is my trpc query, trpc query dont provide data, isLoading or error ```tsx Property 'data' does not exist on type 'UnusedSkipTokenTRPCQueryOptionsOut<{ id: string; title: string; content: string; excerpt: string | null; author: string; category: string; readTime: string; status: string; isFeatured: boolean; image: string | null; createdAt: Date; updatedAt: Date; }[], { ...; }[], TRPCClientErrorLike<...>>'.ts(2339) ``` also i want to invalidate my queries for example invalidate fetching posts query when doing a mutation (IN THE NEW WAY) ```tsx await utils.blogs.getBlogs.invalidate(); ``` ```tsx Property 'invalidate' does not exist on type 'DecorateQueryProcedure<{ input: void; output: { id: string; title: string; content: string; excerpt: string | null; author: string; category: string; readTime: string; status: string; isFeatured: boolean; image: string | null; createdAt: Date; updatedAt: Date; }[]; transformer: true; errorShape: DefaultErrorShape; }...'.ts(2339) ```
  • Open Graph Meta Tags

    3
    • og:title
      can I use useUtils hook in trpc 11 ? - tRPC
    • og:description
      ```tsx export const usePublicBlogs = () => { const trpc = useTRPC(); return trpc.blogs.getPublicBlogs.queryOptions(); };``` ```tsx const { data: blogPosts, isLoading, error } = usePublicBlogs(); ``` this is my trpc query, trpc query dont provide data, isLoading or error ```tsx Property 'data' does not exist on type 'UnusedSkipTokenTRPCQueryOptionsOut<{ id: string; title: string; content: string; excerpt: string | null; author: string; category: string; readTime: string; status: string; isFeatured: boolean; image: string | null; createdAt: Date; updatedAt: Date; }[], { ...; }[], TRPCClientErrorLike<...>>'.ts(2339) ``` also i want to invalidate my queries for example invalidate fetching posts query when doing a mutation (IN THE NEW WAY) ```tsx await utils.blogs.getBlogs.invalidate(); ``` ```tsx Property 'invalidate' does not exist on type 'DecorateQueryProcedure<{ input: void; output: { id: string; title: string; content: string; excerpt: string | null; author: string; category: string; readTime: string; status: string; isFeatured: boolean; image: string | null; createdAt: Date; updatedAt: Date; }[]; transformer: true; errorShape: DefaultErrorShape; }...'.ts(2339) ```
    • og:image
      https://discord-questions.trpc.io/og/post?id=1389239840993968148
  • Twitter Meta Tags

    4
    • twitter:card
      summary_large_image
    • twitter:title
      can I use useUtils hook in trpc 11 ? - tRPC
    • twitter:description
      ```tsx export const usePublicBlogs = () => { const trpc = useTRPC(); return trpc.blogs.getPublicBlogs.queryOptions(); };``` ```tsx const { data: blogPosts, isLoading, error } = usePublicBlogs(); ``` this is my trpc query, trpc query dont provide data, isLoading or error ```tsx Property 'data' does not exist on type 'UnusedSkipTokenTRPCQueryOptionsOut<{ id: string; title: string; content: string; excerpt: string | null; author: string; category: string; readTime: string; status: string; isFeatured: boolean; image: string | null; createdAt: Date; updatedAt: Date; }[], { ...; }[], TRPCClientErrorLike<...>>'.ts(2339) ``` also i want to invalidate my queries for example invalidate fetching posts query when doing a mutation (IN THE NEW WAY) ```tsx await utils.blogs.getBlogs.invalidate(); ``` ```tsx Property 'invalidate' does not exist on type 'DecorateQueryProcedure<{ input: void; output: { id: string; title: string; content: string; excerpt: string | null; author: string; category: string; readTime: string; status: string; isFeatured: boolean; image: string | null; createdAt: Date; updatedAt: Date; }[]; transformer: true; errorShape: DefaultErrorShape; }...'.ts(2339) ```
    • twitter:image
      https://discord-questions.trpc.io/og/post?id=1389239840993968148
  • Link Tags

    10
    • canonical
      https://discord-questions.trpc.io/m/1389239840993968148
    • icon
      https://cdn.answeroverflow.com/867764511159091230/6af104c7f0f39a12fcd55bd7bd28928f/icon.png
    • preload
      https://www.answeroverflow.com/_next/static/media/4f05ba3a6752a328-s.p.woff2
    • preload
      https://www.answeroverflow.com/_next/static/media/9cf9c6e84ed13b5e-s.p.woff2
    • preload
      /discord/0.png

Links

9