discord-questions.trpc.io/m/1343516933336862732

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

Linked Hostnames

4

Thumbnail

Search Engine Appearance

Google

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

skipToken combined with the new tanstack query options - tRPC

I am trying to prefetch the next x pages in a table, but i have some logic to determine whether or not this should happen. I used to use skipToken for this, with the old tanstack query package, and it seemed to sort of working. I tried changing the code to fit the new react query package, but it instead of skipping it now runs the API call without any options. ```typescript usePrefetchQuery( trpc.lead.paginate.queryOptions( query?.data?.pagination && query.data.pagination.page > 1 && query.data.pagination.page < query.data.pagination.totalPages ? { ...input, pagination: { perPage: paginationOptions.perPage, page: query.data.pagination.page - 1 }, } : skipToken, ), );```



Bing

skipToken combined with the new tanstack query options - tRPC

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

I am trying to prefetch the next x pages in a table, but i have some logic to determine whether or not this should happen. I used to use skipToken for this, with the old tanstack query package, and it seemed to sort of working. I tried changing the code to fit the new react query package, but it instead of skipping it now runs the API call without any options. ```typescript usePrefetchQuery( trpc.lead.paginate.queryOptions( query?.data?.pagination && query.data.pagination.page > 1 && query.data.pagination.page < query.data.pagination.totalPages ? { ...input, pagination: { perPage: paginationOptions.perPage, page: query.data.pagination.page - 1 }, } : skipToken, ), );```



DuckDuckGo

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

skipToken combined with the new tanstack query options - tRPC

I am trying to prefetch the next x pages in a table, but i have some logic to determine whether or not this should happen. I used to use skipToken for this, with the old tanstack query package, and it seemed to sort of working. I tried changing the code to fit the new react query package, but it instead of skipping it now runs the API call without any options. ```typescript usePrefetchQuery( trpc.lead.paginate.queryOptions( query?.data?.pagination && query.data.pagination.page > 1 && query.data.pagination.page < query.data.pagination.totalPages ? { ...input, pagination: { perPage: paginationOptions.perPage, page: query.data.pagination.page - 1 }, } : skipToken, ), );```

  • General Meta Tags

    6
    • title
      skipToken combined with the new tanstack query options - tRPC
    • charset
      utf-8
    • viewport
      width=device-width, initial-scale=1
    • next-size-adjust
    • description
      I am trying to prefetch the next x pages in a table, but i have some logic to determine whether or not this should happen. I used to use skipToken for this, with the old tanstack query package, and it seemed to sort of working. I tried changing the code to fit the new react query package, but it instead of skipping it now runs the API call without any options. ```typescript usePrefetchQuery( trpc.lead.paginate.queryOptions( query?.data?.pagination && query.data.pagination.page > 1 && query.data.pagination.page < query.data.pagination.totalPages ? { ...input, pagination: { perPage: paginationOptions.perPage, page: query.data.pagination.page - 1 }, } : skipToken, ), );```
  • Open Graph Meta Tags

    3
    • og:title
      skipToken combined with the new tanstack query options - tRPC
    • og:description
      I am trying to prefetch the next x pages in a table, but i have some logic to determine whether or not this should happen. I used to use skipToken for this, with the old tanstack query package, and it seemed to sort of working. I tried changing the code to fit the new react query package, but it instead of skipping it now runs the API call without any options. ```typescript usePrefetchQuery( trpc.lead.paginate.queryOptions( query?.data?.pagination && query.data.pagination.page > 1 && query.data.pagination.page < query.data.pagination.totalPages ? { ...input, pagination: { perPage: paginationOptions.perPage, page: query.data.pagination.page - 1 }, } : skipToken, ), );```
    • og:image
      https://discord-questions.trpc.io/og/post?id=1343516933336862732
  • Twitter Meta Tags

    4
    • twitter:card
      summary_large_image
    • twitter:title
      skipToken combined with the new tanstack query options - tRPC
    • twitter:description
      I am trying to prefetch the next x pages in a table, but i have some logic to determine whether or not this should happen. I used to use skipToken for this, with the old tanstack query package, and it seemed to sort of working. I tried changing the code to fit the new react query package, but it instead of skipping it now runs the API call without any options. ```typescript usePrefetchQuery( trpc.lead.paginate.queryOptions( query?.data?.pagination && query.data.pagination.page > 1 && query.data.pagination.page < query.data.pagination.totalPages ? { ...input, pagination: { perPage: paginationOptions.perPage, page: query.data.pagination.page - 1 }, } : skipToken, ), );```
    • twitter:image
      https://discord-questions.trpc.io/og/post?id=1343516933336862732
  • Link Tags

    9
    • canonical
      https://discord-questions.trpc.io/m/1343516933336862732
    • 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

8