filyys
filyys
Explore posts from servers
CDCloudflare Developers
Created by filyys on 4/28/2025 in #general-help
Worker routing issue
Anyway, thank you a ton for the help, I'd never figure that out with the DNS records
9 replies
CDCloudflare Developers
Created by filyys on 4/28/2025 in #general-help
Worker routing issue
Oh yeah, seems like something happened. First time using OpenAPI for workers so I wouldn't be shocked
9 replies
CDCloudflare Developers
Created by filyys on 4/28/2025 in #general-help
Worker routing issue
Okay, I tried adding the DNS record, it's still not working. I'm guessing I need to wait a little for it? If it doesn't work, I'll use the custom domains in that case
9 replies
TTCTheo's Typesafe Cult
Created by filyys on 4/22/2025 in #questions
Keys
Oh alright, that makes sense. Thanks for the help
9 replies
TTCTheo's Typesafe Cult
Created by filyys on 4/22/2025 in #questions
Keys
You need to give each array item a key — a string or a number that uniquely identifies it among other items in that array
You need to give each array item a key — a string or a number that uniquely identifies it among other items in that array
React recommends to use an ID that’s predetermined in the data, so isn’t this the same as an index from the map?
9 replies
TTCTheo's Typesafe Cult
Created by filyys on 4/22/2025 in #questions
Keys
Biome recommends to not use the index of the map, eslint too, iirc
9 replies
BABetter Auth
Created by filyys on 3/29/2025 in #help
Disabling email scope on Github oath
Got a fix:
github: {
// ...
disableDefaultScope: true,
scope: ["read:user"],
},
github: {
// ...
disableDefaultScope: true,
scope: ["read:user"],
},
4 replies
TTCTheo's Typesafe Cult
Created by filyys on 9/29/2024 in #questions
What's the best way of making a Next.js image component fit the parent size?
Yup, I had a few other issues in the meantime but I got it to work, thanks
10 replies
TTCTheo's Typesafe Cult
Created by filyys on 9/29/2024 in #questions
What's the best way of making a Next.js image component fit the parent size?
I'll check into that, thanks
10 replies
TTCTheo's Typesafe Cult
Created by filyys on 8/6/2024 in #questions
tRPC error Unhandled Runtime Error
Bump
5 replies
TTCTheo's Typesafe Cult
Created by filyys on 8/6/2024 in #questions
tRPC error Unhandled Runtime Error
Sadly, that didn't fix it. Same error as before
return (
<QueryClientProvider client={queryClient}>
<trpc.Provider client={trpcClient} queryClient={queryClient}>
{p.children}
</trpc.Provider>
</QueryClientProvider>
);
return (
<QueryClientProvider client={queryClient}>
<trpc.Provider client={trpcClient} queryClient={queryClient}>
{p.children}
</trpc.Provider>
</QueryClientProvider>
);
5 replies
TtRPC
Created by filyys on 8/1/2024 in #❓-help
tRPC & Next.js confused about error
Thanks a million! I got it fixed despite delay
12 replies
TtRPC
Created by filyys on 8/1/2024 in #❓-help
tRPC & Next.js confused about error
yes, it appears the error is not there when I comment out the trpc layout.tsx and uncomment the original next.js template code layout.tsx
// This code works
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body className={inter.className}>{children}</body>
</html>
);
}

// This code doesn't work
// const MyApp: AppType = ({ Component, pageProps }) => {
// // return <Component {...pageProps} />;

// return (
// <html lang="en">
// <body className={inter.className}>
// <Component {...pageProps} />
// </body>
// </html>
// );
// };

// export default trpc.withTRPC(MyApp);
// This code works
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body className={inter.className}>{children}</body>
</html>
);
}

// This code doesn't work
// const MyApp: AppType = ({ Component, pageProps }) => {
// // return <Component {...pageProps} />;

// return (
// <html lang="en">
// <body className={inter.className}>
// <Component {...pageProps} />
// </body>
// </html>
// );
// };

// export default trpc.withTRPC(MyApp);
12 replies
TtRPC
Created by filyys on 8/1/2024 in #❓-help
tRPC & Next.js confused about error
There are no hooks in my code, the error keeps showing up Full error
⨯ useState only works in Client Components. Add the "use client" directive at the top of the file to use it. Read more: https://nextjs.org/docs/messages/react-client-hook-in-server-component
if (props.trpc) {
return props.trpc;
}
const config = getClientConfig({});
const queryClient = (0,_trpc_react_query_shared__WEBPACK_IMPORTED_MODULE_1__.getQueryClient)(config);
const trpcClient = trpc.createClient(config);
return {
abortOnUnmount: config.abortOnUnmount,
queryClient,
trpcClient,
ssrState: opts.ssr ? 'mounting' : false,
ssrContext: null
};
})', '(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)' is undefined)
at withTRPC(MyApp) (:21:83)
at stringify (native)
digest: "381594184"
GET / 500 in 56ms
⨯ useState only works in Client Components. Add the "use client" directive at the top of the file to use it. Read more: https://nextjs.org/docs/messages/react-client-hook-in-server-component
if (props.trpc) {
return props.trpc;
}
const config = getClientConfig({});
const queryClient = (0,_trpc_react_query_shared__WEBPACK_IMPORTED_MODULE_1__.getQueryClient)(config);
const trpcClient = trpc.createClient(config);
return {
abortOnUnmount: config.abortOnUnmount,
queryClient,
trpcClient,
ssrState: opts.ssr ? 'mounting' : false,
ssrContext: null
};
})', '(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)' is undefined)
at withTRPC(MyApp) (:21:83)
at stringify (native)
digest: "381594184"
GET / 500 in 56ms
The error isn't helping me find the useState that isn't anywhere
12 replies
TtRPC
Created by filyys on 8/1/2024 in #❓-help
tRPC & Next.js confused about error
No description
12 replies
TTCTheo's Typesafe Cult
Created by filyys on 7/25/2024 in #questions
tRPC example file structure question
Alright thanks for the answer
6 replies