tailwind dashboard current state
hey guys im currently making school project with tailwindUI and i use their dashboard, the problem is when i changes pages the current doesnt changes any idea how?

global react query config for trpc
Hi everyone, I keep having to add to all my client queries... I can't seem to find a way to disable it globally in tRPC... Can someone please point me in the right direction of where the global queryClient config options are? Thanks.
{ refetchOnWindowFocus: false }
{ refetchOnWindowFocus: false }
using useSession hook
is it good to call useSession many times or make useSession globally, im still kinda new so need a lot of advice and guidance thanksss
Best Practice - Handling undefined deps on custom use hook
Good day everyone! I know this is more of a react specific question, but I spend all day in Nextjs land so I thought I'd pose this question to you all.
Been struggling a bit with something. What is everyone's favorite way to handle undefined deps for a useHook?
```
const useSomething = (someDep: string) => {
... something that requires "someDep" ......
Number as env var does not work
I have an .env var set like this
PUSH_INVITE_DELAY_MINUTES=0
In my code I am calling it like this
```ts...is it bad to write to database in .query()
I do get confused sometimes i write my
ctx.prisma.user.create({...})
In a .query()
Instead of .mutation()...
Tool to hunt down Memory Leaks
Is there a tool out there anyone recommend to hunt down memory leaks? Nextjs crashing after some time (less memory = faster crash) and I can’t figure out where the culprit is. T3-turbo stack project
How difficult is it to port a t3 app to t3-turbo React Native?
Building a new app that might end up on mobile and trying to gauge if it makes sense to learn t3-turbo React Native now and start there or just build it quick with t3 and then worry about mobile apps later.
Resize window for Stage Manager in MacOS
I really like the way Stage Manager works when I'm coding, being able to have the little preview to the side and organize different sets of windows really fits my workflow but I haven't found a solid way to get the windows to the correct size (like in the picture). I'm currently using Magnet so snap to the side 50% and then manually dragging. Has anyone found a better solution for this?

Typescript using zod and React-hook form.
Hello all, I have a question if anyone has used zod/react hook form. My main problem I am facing is typing the form correctly, there will be times when the type can
withMobile and other not, depending on a boolean, variable, is there a way property pass these into the form
.mutate() underlying implementation
Can .mutate() substitute a fetch('POST')
I switched fetch() to .mutate and everything is working out. I just don't understand what mutate does under the hood, I don't want there to be side effects, I just want to do a POST request ONCE and get a response, that's it....
Mutations run in an weird order
So basically I want to create a room using a question and name a user inputs, which would be the
input and name state variables. The room is created every time, which is what I want since I need the room id to add the user. The issue is that when the user submits the create a room form, the member is not created nor are they added to the room initially.
However, when the user resubmits the form with the same data, a new room is created and the new member is created in the database.
I want the member and room to be created on the first submit of the form, but can't seem to figure out why it isn't working. Any help would be appreciated.
Here is the snippet of code:
...Error handling deeply nested writes
This post https://github.com/prisma/prisma/issues/8776 goes into pretty good detail about the issue. I'm just wondering if anyone here has a good solution for this? I have a large form to submit and on submission I have a lot of related data that gets created all at once in my database. I can't have it return an error saying unknown arg. I can't do form validation with a useless error like that. My current thought is to maybe create the new item and then update each of the related fields in separate calls to potentially get an error from each of those. Something like: ```ts
#This does not work
await prisma.user.create({
data: {
....,...
multiple query in trpc endpoint
hello guys, i got a question is it possible to perform multiple query in single trpc endpoint, im still new to t3 so i cant find a solution to this
example:
1. create data in table A
2. and then update a value in table B...

Best practices - defining types when lib doesn't export the type
I'm writing a hook that wraps a transaction from another library.
The library returns a Promise<SendTransactionResult>, but SendTransactoinResult is not exported from the library.
I'm writing a handler for the promise but I'm struggling with what the best practice would be for defining the type that this callback should expect.
``` /...inside hook.../...
SQL Syntax error
Getting this error
Here:...
[ { message: 'syntax error at or near "SELECT"' } ],
[ { message: 'syntax error at or near "SELECT"' } ],
zod foreign key validation
This is probably a question that has been answered to death but I can't find anything that really helps so apologies if that's the case
I'm trying to validate a create mutation for a album table and I want to have a field that specifies the episode id foreign key that the album is discussed in
Getting the error 'Type 'string' has no properties in common with type 'MainEpisodeCreateNestedOneWithoutAlbumsInput'.'...

NextAuth middleware
I don't know why when I'm using NextAuth middleware and I successfully log In (I can see session when I disable middleware and use useSession hook on index page) it still redirects me to login page 😕