sonor
sonor
TTCTheo's Typesafe Cult
Created by sonor on 12/22/2023 in #questions
What's the right way to solve this?
and what i would need is [1, 5, 3] , but q = 5 only affects that original q value, and not the b array
12 replies
TTCTheo's Typesafe Cult
Created by sonor on 12/22/2023 in #questions
What's the right way to solve this?
for example^
12 replies
TTCTheo's Typesafe Cult
Created by sonor on 12/22/2023 in #questions
What's the right way to solve this?
let a = [1, 2, 3];
let b = [...a];
let q = b[2];
q = 5;
console.log(b); // [1, 2, 3]
let a = [1, 2, 3];
let b = [...a];
let q = b[2];
q = 5;
console.log(b); // [1, 2, 3]
12 replies
TTCTheo's Typesafe Cult
Created by sonor on 12/22/2023 in #questions
What's the right way to solve this?
yea, but when I set that variable it wont affect the 1st array
12 replies
TTCTheo's Typesafe Cult
Created by sonor on 12/22/2023 in #questions
What's the right way to solve this?
thx
12 replies
TTCTheo's Typesafe Cult
Created by sonor on 12/15/2023 in #questions
How to pass tRPC types?
cant find the solution button lmao
5 replies
TTCTheo's Typesafe Cult
Created by sonor on 12/15/2023 in #questions
How to pass tRPC types?
const SearchUsersModal = ({ adminUsers }: { adminUsers: UseTRPCQueryResult<inferRouterOutputs<AppRouter>["admin_users"]["list"], TRPCClientErrorLike<AppRouter>["data"]> }) => {
const [modalOpen, setModalOpen] = useState<boolean>(false);
};
const SearchUsersModal = ({ adminUsers }: { adminUsers: UseTRPCQueryResult<inferRouterOutputs<AppRouter>["admin_users"]["list"], TRPCClientErrorLike<AppRouter>["data"]> }) => {
const [modalOpen, setModalOpen] = useState<boolean>(false);
};
5 replies
TTCTheo's Typesafe Cult
Created by sonor on 11/28/2023 in #questions
T3 & Mongoose
might do that tbh
37 replies
TTCTheo's Typesafe Cult
Created by sonor on 11/28/2023 in #questions
T3 & Mongoose
thats a good idea aswell
37 replies
TTCTheo's Typesafe Cult
Created by sonor on 11/28/2023 in #questions
T3 & Mongoose
ah okay
37 replies
TTCTheo's Typesafe Cult
Created by sonor on 11/28/2023 in #questions
T3 & Mongoose
thank you for the help
37 replies
TTCTheo's Typesafe Cult
Created by sonor on 11/28/2023 in #questions
T3 & Mongoose
okay ill figure something out
37 replies
TTCTheo's Typesafe Cult
Created by sonor on 11/28/2023 in #questions
T3 & Mongoose
hmm i see
37 replies
TTCTheo's Typesafe Cult
Created by sonor on 11/28/2023 in #questions
T3 & Mongoose
yeah gotcha
37 replies
TTCTheo's Typesafe Cult
Created by sonor on 11/28/2023 in #questions
T3 & Mongoose
ah okay
37 replies
TTCTheo's Typesafe Cult
Created by sonor on 11/28/2023 in #questions
T3 & Mongoose
and the DB way would be?
37 replies