React query prefetch and fetch
Using react-query, what happens if you prefetch and while the prefetch is still happening, you click on a button (or whatever that triggers fetch) that fetches? Does the prefetch get cancelled, or does the fetch get cancelled? If both do not get cancelled, which data would be used? What if the prefetched data are stale and the fetched data come before the prefetched data?
Cors subdomains
Hi, I have hard time implementing CORS into t3stack, I have two subdomains:
...
app.page.com
recruiter.page.com
app.page.com
recruiter.page.com
Is there a way to call a trpc useQuery() multiple times?
I have a list of objects, and i would like to call the useQuery 1 time for every object in order to get some deta.
Is there a good way to do this?...
Difference between where in Prisma
Hello, is there a difference between this beside how you write it?
```ts
await prisma.user.count({
where: {...
is there any way to redirect to the default 404 page after your search query on the server component
```typescript
export async function generateMetadata(
pageProps: PageProps
): Promise<Metadata> {...
i18n in T3 stack/headless CMS
Will start today a new project with t3-stack. The client is an language school and we will offer the website in two languages.
1. Did somebody try to use i18n with t3-stack and
2. was wondering if Prisma/PlanetScale is a good fit for content driven websites in comparison to a headless CMS?
...
[Prisma DB] How to import from ssh tunnel
I made a request ticket on their site, but how would I import from a platform (kinsta) that requires ssh tunnel?
How should you approach invalidating queries in trpc?
Is is possible to create a onSuccess handler inside procedures? I don't want to write the same invalidating onSuccess function on every query across my application. Creating reusable hooks kinda goes against the ease of trpc. Is there a good way to approach this?
Browser suggestion
Anyone here suggest me a good browser in whick I can separate my tabs. I use firefox and gosh yesterday I was on a good flow of working on some projects turned off my pc and thought it would save the 3 browsers I had opened. And now they are all gone... About 60 tabs 😢. Only one was stored properly. Any good browser. (Im still waiting for Arc browser :/ )
deploying to vercel - typeerrors
Locally - everything works great, no type errors and its all fine.
Trying to deploy to vercel and I'm encountring some errors, it feels like prisma isnt generated the same as its generating locally as a lot of things are suddenly undefined - but in my code they have their proper type.
Trying to run locally and im suddenly getting the same errors, a lot of stuff is suddenly undefined and im wondering where am I going wrong?...
npm run build
npm run build

System architecture for processing data from multiple 3rd party APIs
Hello, I need some advice on the best practices and general direction I should consider for handling data for my application.
The current data flow is outlined in the attached image. Issues I have with it:...
The current data flow is outlined in the attached image. Issues I have with it:...

Jotai migration from v1 to v2
Im trying to create an hook with useHydrateAtoms to reuse in different components:
```ts
import type { WritableAtom } from "jotai";
import { useHydrateAtoms } from "jotai/utils";
import type { ReactNode } from "react";...
API's to update database - One POST path to update whole object or multiple?
I'm trying to understand what the common/best practice is for creating an API to update my database. Simple basic stuff, I'm just not familiar with what's common.
If I have a Settings document/table and it has subsections like appearance, privacy, user_details, account_info, etc. Is it more common to...
1) Make the API mirror the prisma update function, so I'd create ONE REST API to the settings such that you can pass in any part of the settings and update the table?
2) Separate it out into the sections above so you have a REST API for each section so at least 4 POST routes to update the settings...
Can I use YUP with t3stack?
Hi, I have a bunch of validators already written with YUP, can i safely use it with t3stack? I can see that the trpc has support for it but just want to make sure that there is nothing t3stack specfic
Buying domains and emails
Any good service for this?
I tried GoDaddy but I despise their Microsoft service. I hate that it's Outlook
Rather have Google Workspace...
Prebuild transformations to codebase?
Hey all, due to some bundling issues with preview pages (pages that pull live from a cms) components are 'leaking' through to the client side when they shouldnt. Now as a temporary fix im going to make a branch with the preview logic and the production branch with the preview logic commented out. Instead of manually doing this, is there some sort of node package that's recommended to transform my pages.tsx and "uncomment" the preview logic based on what branch its building from i.e.
NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF?
Any advice/ideas are welcome!...css sibling selector
Given this HTML, how do I target the
<div data-rehype-pretty-code-title> only if the SVG with data-language-icon is present?
I'm guessing some ~ ?...
