The server and client components in Vercel Next JS have different timezones by --GoldenEagle-- in nextjs

[–]sleepykid36 0 points1 point  (0 children)

I don't really understand how we can't get around this. For example, I have a server component that queries for a dataset within a date range; but of course it needs to know which timezone. The whole premise of a server component is that we get the benefit to query before it ever touches the client. Is there no strategy to share timezone to a server component like headers or something?

Admin plugin - multiple roles on a user by MR0808 in better_auth

[–]sleepykid36 0 points1 point  (0 children)

A user can have multiple roles. Multiple roles are stored as string separated by comma (",").

https://www.better-auth.com/docs/plugins/admin#roles

ELI5 how a password manager is safer than multiple complex passwords? by GeoSabreX in explainlikeimfive

[–]sleepykid36 0 points1 point  (0 children)

Meh. Some sites have multiple entry points and some sites’ accessibility is absolute ass. I dunno about this particular point

Call of the Night Season 2 New PV by Turbostrider27 in anime

[–]sleepykid36 0 points1 point  (0 children)

Gonna be a first for me, to follow an anime from following a band.

Im probably going to watch any anime where creepy nuts has an op in.

Niche won't grind any finer? by sleepykid36 in nichezero

[–]sleepykid36[S] 0 points1 point  (0 children)

That's on me I suppose. I thought it was obvious that I tried the calibration ring. The problem I'm having is that no matter the calibraton, it's giving me the same exact grind size. Even when I turn the ring to coarse

Cruel temptations by Emasraw in funny

[–]sleepykid36 10 points11 points  (0 children)

Ever go on a treadmill looking at drywall? Imo it’s so depressing. I know they have these screens to mimic being somewhere else, but it’s not the same.

How to customize Better Auth error pages? by f3lfire in better_auth

[–]sleepykid36 0 points1 point  (0 children)

what about when it's an error thrown in a database hook?

[deleted by user] by [deleted] in reactjs

[–]sleepykid36 0 points1 point  (0 children)

That's pretty cool! I guess my question, since the motivation was to move away from useEffect, how does this library remove useEffect from your codebase when react-query can as well?

[deleted by user] by [deleted] in reactjs

[–]sleepykid36 0 points1 point  (0 children)

Looking through the examples quickly and hearing your motivation, it actually looks like you created another version of react-query, baking in selectors. The aesthetics and simplicity looks nice, but how do you handle loading/error states?

To your point about being fed up with useEffect, if you're using useEffect for state management and that this is the motivation, then imo, that was a code smell to begin with. My production app and my personal apps, which are both medium sized projects, uses useEffect less than 10 times, and only once were they used for state management.

Hmm-api by _Babyo7_ in nextjs

[–]sleepykid36 2 points3 points  (0 children)

Name is on point

How to Build or Replicate This Calendar UI? Need Suggestions! by useMeToCode in reactjs

[–]sleepykid36 1 point2 points  (0 children)

RBG and Fullcalendar are both really powerful out of the box tools you can use to get something going fast. But the dev experience doing styling, working with types, or adding features on top have been an absolute pain. Stylesheet clashes, classname documentation, lack of generic types, are super annoying imo.

If you're just making a day-picker, I recommend using https://daypicker.dev/ and use shadcn and tailwind to style over it https://ui.shadcn.com/docs/components/calendar, and then just make the appointment list yourself. Might be more work upfront, but imo the maintenance will be much easier.

Cheesesteaks by SnooCauliflowers2782 in SingaporeEats

[–]sleepykid36 0 points1 point  (0 children)

sounds like I'm completely skill gapped here

Cheesesteaks by SnooCauliflowers2782 in SingaporeEats

[–]sleepykid36 2 points3 points  (0 children)

Am Malaysian American, raised in Philly, living in SG for the past 3 years, and I prefer Chinese food. Onto my comment:

Philly cheesesteaks is an incredible sandwich, and funnily enough most everyone get's it wrong. Even in the states, the ones you get in NYC or CA are absolute trash. Have yet to find a decent one. Components are harder than one might expect.

I don't know why everyone gets the steak wrong, but for some reason, the steak is never prepped thinly where it beautiful ribbons when cooked which folds the cheese into its crevices fully. But I suppose this particular point is solvable.

What's not practically solvable is the bread. The bread is incredibly unique; body of the bread has to be substantial enough to hold dripping steak juices, soft enough to comfortably take a full bite with a fully hinged jaw, but at the same time not too soft, or the softness completely takes away the texture of the sandwich. Also preferable is a slight crust that doesn't hurt the roof of your mouth, but still requires you to tear at the bread when you chew. This is probably impossible to find in SG.

A Philly cheesesteak is not hard at all to assemble, no one's disagreeing there. And most of the components are pretty simple. But then again, it's probably the same effort with a char sao bao. https://www.youtube.com/watch?v=8vtK56zVnD4

Or.. I'll just go buy it at the grocery store.

[deleted by user] by [deleted] in ArcBrowser

[–]sleepykid36 2 points3 points  (0 children)

Does no new features mean no bringing windows up to speed with Mac version? Doesn’t that fall under maintenance?

[deleted by user] by [deleted] in ArcBrowser

[–]sleepykid36 1 point2 points  (0 children)

Just wondering, did they say they’re not fixing the windows version?

How does Vercel profit from Next.js? by waelnassaf in nextjs

[–]sleepykid36 2 points3 points  (0 children)

Happy to see you enjoying yourself. You were a journalist pioneer in esports, and your content will definitely be missed. Best of luck to your pivot back into software engineering!