FrancyMak
Explore posts from serversBABetter Auth
•Created by FrancyMak on 4/20/2025 in #help
useSession weird behaviour
The argument of type ‘string | undefined’ is not assignable to the parameter of type ‘string’.
The type ‘undefined’ is not assignable to the type ‘string’.
16 replies
BABetter Auth
•Created by FrancyMak on 4/20/2025 in #help
useSession weird behaviour
No because user is null
16 replies
BABetter Auth
•Created by FrancyMak on 4/20/2025 in #help
useSession weird behaviour
so i can't conditionally call hooks
16 replies
BABetter Auth
•Created by FrancyMak on 4/20/2025 in #help
useSession weird behaviour
I already have that hook but the user returns null
16 replies
BABetter Auth
•Created by FrancyMak on 4/20/2025 in #help
useSession weird behaviour
export function Notifications() {
const user = useCurrentUser()
const { data: notifications, refetch } = useNotificationsQuery(user.id)
16 replies
BABetter Auth
•Created by FrancyMak on 4/20/2025 in #help
useSession weird behaviour
Ok but the user will be null anyway
16 replies
BABetter Auth
•Created by FrancyMak on 4/20/2025 in #help
useSession weird behaviour
Here you go 🙂
16 replies
BABetter Auth
•Created by FrancyMak on 4/20/2025 in #help
useSession weird behaviour
That's why i specified client component
16 replies
BABetter Auth
•Created by FrancyMak on 4/20/2025 in #help
useSession weird behaviour
Nope, it's a client component
16 replies
PPrisma
•Created by FrancyMak on 1/31/2025 in #help-and-questions
Prisma Studio Error
So i can't connect the two records by entering the userId of the relation in prisma studio
38 replies
PPrisma
•Created by FrancyMak on 1/31/2025 in #help-and-questions
Prisma Studio Error
And i have a relation now
38 replies
PPrisma
•Created by FrancyMak on 1/31/2025 in #help-and-questions
Prisma Studio Error
Ok i did the same thing
38 replies
PPrisma
•Created by FrancyMak on 1/31/2025 in #help-and-questions
Prisma Studio Error
When i save the changes, i get this query
38 replies
PPrisma
•Created by FrancyMak on 1/31/2025 in #help-and-questions
Prisma Studio Error
[
{
"modelName": "Freelancer",
"operation": "create",
"args": {
"data": {
"user": {
"connect": {}
},
"avgRating": 0,
"departments": {},
"commissions": {},
"updatedAt": "2025-01-31T18:22:38.740Z"
},
"select": {
"id": true,
"userId": true,
"user": true,
"avgRating": true,
"departments": true,
"commissions": true,
"createdAt": true,
"updatedAt": true
}
}
}
]
38 replies
PPrisma
•Created by FrancyMak on 1/31/2025 in #help-and-questions
Prisma Studio Error
If I click on open in a new tab, it does nothing
38 replies