Luke
Luke
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Arianos11 on 9/6/2024 in #questions
Proper technology stack for ecommerce
Yes, but if you leverage SSR, then you can have your API requests happen much closer to your server
18 replies
TTCTheo's Typesafe Cult
Created by Arianos11 on 9/6/2024 in #questions
Proper technology stack for ecommerce
I'd still advise having those reqs run through the server on Remix or Next, for a few reasons: 1. More control over handling, easier, cleaner code/separation of concerns 2. Easier and cleaner to enforce security And last but not least, the most important reason and big perf gain, is that if you call your API via your frontend on the server side, and your API/frontend are using the same hosting provider and are close to eachother, that API request will execute much quicker from server <-> server as opposed to the client -> backend
18 replies
TTCTheo's Typesafe Cult
Created by packofm&ms on 8/7/2024 in #questions
MonkeyType
fasho
12 replies
TTCTheo's Typesafe Cult
Created by packofm&ms on 8/7/2024 in #questions
MonkeyType
12 replies
TTCTheo's Typesafe Cult
Created by packofm&ms on 8/7/2024 in #questions
MonkeyType
@packofm&ms you're in luck man, lol, monkeytype is open source. not sure their anti cheat is on there, but you can definitely take a page out of their book
12 replies
TTCTheo's Typesafe Cult
Created by packofm&ms on 8/7/2024 in #questions
MonkeyType
And what happens on the client is always going to be out of your hands, and all data that comes in from the client should be assumed to be malicious
12 replies
TTCTheo's Typesafe Cult
Created by packofm&ms on 8/7/2024 in #questions
MonkeyType
You're always going to have to take what happens on the client (in this case, the typing test itself), and send that to the server to be handled
12 replies
TTCTheo's Typesafe Cult
Created by packofm&ms on 8/7/2024 in #questions
MonkeyType
Gonna be honest with you... "anti-cheat" as a whole is a tough problem to solve
12 replies
TtRPC
Created by Luke on 7/23/2024 in #❓-help
Next.js/tRPC Prefetch w/ HydrateClient "Error occurred prerendering page"
I FIXED IT! Stupid mistake, I wasn't marking the root page function that was performing the prefetch as async... i.e: Broken:
export default function QueuePage() {
export default function QueuePage() {
Fix:
export default async function QueuePage() {
export default async function QueuePage() {
4 replies
TTCTheo's Typesafe Cult
Created by Luke on 7/23/2024 in #questions
Next.js/tRPC Prefetch w/ HydrateClient "Error occurred prerendering page"
I FIXED IT! Stupid mistake, wasn't marking the root page function as async... i.e: Broken:
export default function QueuePage() {
export default function QueuePage() {
Fix:
export default async function QueuePage() {
export default async function QueuePage() {
4 replies
TTCTheo's Typesafe Cult
Created by oz on 7/7/2024 in #questions
Route workin in Dev and not Prod?
Out of curiosity, are you using any auth library or are you using any Next.js middleware?
6 replies
TTCTheo's Typesafe Cult
Created by Isaac on 7/6/2024 in #questions
Backend Architecture - Programmatically generating files and pushing to user's GitHub
But if I were you, I'd have a nice little web app, have them authenticate with GitHub, and then you should be good (depending on the scopes your application uses) to perform actions on behalf of them using the plain old GitHub API
8 replies
TTCTheo's Typesafe Cult
Created by Isaac on 7/6/2024 in #questions
Backend Architecture - Programmatically generating files and pushing to user's GitHub
@Isaac I'm not too sure what your idea exactly is, so it's hard to give solid info without the full background
8 replies
TTCTheo's Typesafe Cult
Created by Jeffrey on 7/3/2024 in #questions
Most Performant Way of Implementing Dialog/Sheet for Row Click in a large DataTable
I ended up implementing react-window (https://github.com/bvaughn/react-window), worked like a charm, didn't require too much effort either
6 replies
TTCTheo's Typesafe Cult
Created by Jeffrey on 7/3/2024 in #questions
Most Performant Way of Implementing Dialog/Sheet for Row Click in a large DataTable
Not an insane number by any means, but, when I went to open the combobox, my laptop would freeze up for a second, was defintely not a great feeling
6 replies
TTCTheo's Typesafe Cult
Created by Jeffrey on 7/3/2024 in #questions
Most Performant Way of Implementing Dialog/Sheet for Row Click in a large DataTable
Was adding some filter components using shadcn's "combobox" to a data table, and one of the filters was a "select a user" type situation, where there are about 5000~ users to select from.
6 replies
TTCTheo's Typesafe Cult
Created by Jeffrey on 7/3/2024 in #questions
Most Performant Way of Implementing Dialog/Sheet for Row Click in a large DataTable
But I quite literally just dealt with a nearly identical case today
6 replies
TTCTheo's Typesafe Cult
Created by Jeffrey on 7/3/2024 in #questions
Most Performant Way of Implementing Dialog/Sheet for Row Click in a large DataTable
I'm a little late to the party here
6 replies
TTCTheo's Typesafe Cult
Created by extinkt1 on 10/21/2023 in #questions
Server actions replacing TRPC?
They're also creating all kinds of new things that makes integrating it within server actions and this new landscape even better
12 replies
TTCTheo's Typesafe Cult
Created by extinkt1 on 10/21/2023 in #questions
Server actions replacing TRPC?
@deviana I still use it for the developer experience and our companies specific use case (as a sort of middle-layer between our backend REST API and our next app, makes onboarding new devs with the type safety, etc, a breeze)
12 replies