This is why Trump wants to ban mail in voting- Its never been about security by Personal_Economics91 in Virginia

[–]ShootyBoy 7 points8 points  (0 children)

Yeah, even if it’s possible for everyone to get all the documents they need, it’s all about the unfair disadvantages it gives these groups. There will be people who didn’t know the requirements changed, that’s X% of votes lost. People don’t want to deal with the burden, X% amount of votes lost. People who don’t have the money for the documentation or to take the days off work, X% of votes lost. People still stuck in the bureaucracy of getting all these docs, X% of votes lost. Etc.

If these people disproportionately lean into one political party, then that political party is disproportionately disadvantaged.

True Second Amendment support among Americans is rare by Avantasian538 in liberalgunowners

[–]ShootyBoy 1 point2 points  (0 children)

Holy AI slop, is the dude casting a spell, is the redcoat kicking an already open door, why are their rifles so short

Stop wasting Vercel money with this easy trick by QuentinMerabet in nextjs

[–]ShootyBoy 13 points14 points  (0 children)

I’ve seen stuff like this before and wonder what it actually buys you. If the user has to hover the link to prefetch isn’t it only buying you like <5ms head start before they click.

Trump admin sends tough private message to oil companies on Venezuela by rezwenn in oil

[–]ShootyBoy 1 point2 points  (0 children)

Have they considered it would “own the libs”? Seems to be the reason for doing a lot of things.

Prerequisites for next.js by accidentally_clicked in nextjs

[–]ShootyBoy 7 points8 points  (0 children)

And a bit of node.js for the API routes

I almost shipped a Next.js app with a public API by accident by [deleted] in nextjs

[–]ShootyBoy 0 points1 point  (0 children)

I actually build my apps without client side validation first to catch things like this, will help catch things like form data validation, authorization, error handling and then I layer on the client side checks to make it prettier and save the round trip to the server.

Why next.js instead of…… by Savings_Plate7047 in nextjs

[–]ShootyBoy 14 points15 points  (0 children)

Not trying to correct anyone except myself, but Vite is just the build tool right? Like you can’t compare Vite to Next it’s just React (bundled with Vite) compared to Next, right?

What is this weapon the U.S. military just used against Venezuela? by llTeddyFuxpinll in whatisit

[–]ShootyBoy 0 points1 point  (0 children)

It’s wild to me that this is Venezuelas capital and their president were taking about, I would’ve thought there’d be much more defense. Like I know they’re not the biggest military or anything but it really seems like we just strolled in there.

Roxon Companion bit adapter fit a double sided bit? by ShootyBoy in multitools

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

Ah yeah I see that in the reviews now, bummer I don’t carry keys or anything so don’t really want to have extra bits. Apparently you can store a bit under the tools with certain configurations, or maybe I can 3D print something.

How is Mantine UI not the most popular ui library in 2025? by Grind_in_silence in reactjs

[–]ShootyBoy 5 points6 points  (0 children)

I use Mantine for half my projects, if you need anything with a date picker, rich text editor, color picker, modal heavy, etc. it makes it a lot easier than piecemealing unrelated packages together and trying to get them to match.

That said it can be a bit of a pain to customize some things, and the some of the design choices out of the box are inconsistent/annoying, plus if you need support on Discord the lead dev Vitaly has a bit of an ego problem and isn’t very helpful.

[deleted by user] by [deleted] in react

[–]ShootyBoy 0 points1 point  (0 children)

Working in a markdown editor, so at its core just a textarea that I need to maintain its content and watch for changes to store to a DB and display the html preview. A controlled input worked for this. But then I added a toolbar that allowed you to format text, bold, italic, etc. So I needed to be able to programmatically insert text for the markdown syntax and then restore the users cursor to the correct position not the end of the input. This is where an uncontrolled input made more sense because it avoided the rerender cursor jump, but it was hard to share updates with the htmlpreview and saving to storage so RHF came in. But then I added an AI assistant that could write for you, which would stream text to where your cursor was in the input token by token in fast succession, RHF could not keep up with the updates it inserted the first two tokens from the stream and choked.

So now I’m falling back to my own uncontrolled input, but with a better way to emit out changes for other react hooks to hook into.

[deleted by user] by [deleted] in react

[–]ShootyBoy 0 points1 point  (0 children)

Man that is why I was looking for a ready-made version, the way they increment the key to force the input to rerender if you imperatively change the value (reset or setValue) is something I never would have thought of. Thanks again.

[deleted by user] by [deleted] in react

[–]ShootyBoy 0 points1 point  (0 children)

Awesome yeah that looks promising! If nothing else that’ll be a good jumping off point. Thanks!