tRPC
Join the tRPC server to ask questions!
Join ServerChannels
onSuccess invalidate
React Query client and caller client under one object
I want to refetch and set the inital data of an useState
SSR
, but i want to use somethinng that makes it possible to update the useState on interactions from the user. Im guessing I should use useQuery
?How can i set it so initialData in my useState works. this is my current useState line: ```tsx...
Vanilla Client Error Handling
sidebar search

WS with TRPC
tRPC is butchering object types in return types
{ name?: string }
{ name?: string }
Why my Authorization does not update ?
_app.tsx
```export default function App({ Component, pageProps }: AppProps) {
return (
<>
<Head>
<title lang="en">Holistic Drop</title>...TypeError: queryClient.getMutationDefaults is not a function (it is undefined)
useQuery never returning or hitting API
❯ npm create t3-app@latest
example app to add to an exisitng app. I am trying to call the simple post.hello
and i tis working on the server. but when I call it on the client side like:
const postResult = api.post.hello.useQuery({text:'Hello'});
const postResult = api.post.hello.useQuery({text:'Hello'});
Type 'QueryClient' is missing the following properties from type 'QueryClient': queryCache, mutation
Type 'QueryClient' is missing the following properties from type 'QueryClient': queryCache, mutationCache, logger, defaultOptions, and 4 more.
Type 'QueryClient' is missing the following properties from type 'QueryClient': queryCache, mutationCache, logger, defaultOptions, and 4 more.
trpc mutation call stuck
Create client based on OpenAPI
TRPC with react query, getting error twice?
Error building create-t3-app: Page couldn't be rendered statically because it used `cookies`
TRPCClientError: Dynamic server usage: Page couldn't be rendered statically because it used `cookies`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error
TRPCClientError: Dynamic server usage: Page couldn't be rendered statically because it used `cookies`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error
Compressing parts of query/mutation input
`useSuspenseQuery` still runs a fetch on SSR even when setting `ssr: false` in the api config
Suspense.CSROnly
from @suspensive/reactUnsubscription callback triggering immediately
Multiple optimistic updates and old data from refetches
.cancel()
to prevent out-of-date data being returned by refetches that came before the latter mutation, but for whatever reason, that isn't working. (Likely cause I'm stoopid 🙃)...Pass headers when prefetching using helpers
Record<string..
, so i'm not sure what it does.
```ts
export const getServerSideProps = async ( ) => { ...