Aaron Pettengill
pettengill.dev
Aaron Pettengill
@pettengill.dev
Software Dev
Maintainer of https://rvf-js.io
GH: https://github.com/airjp73
I like my auto-complete with superpowers because it's still basically what I want to write, just faster. But not going anywhere near the full-on hands-off just-say-what-you-want-and-it-writes-the-code-for-you features.
June 25, 2025 at 12:28 PM
Gah! I use that thing all the time T.T
June 13, 2025 at 4:42 PM
This is always my first thought when library/framework authors say they want to be model-first, model-driven, etc. Optimizing for what LLMs spit out seems like a great way to stagnate.
June 3, 2025 at 4:27 PM
The reason I've heard is it makes it hard to use multiple of these hooks on the same element.

But with a mergeRefs helper, that justification doesn't hold water for me.
May 3, 2025 at 1:32 PM
I've lost count of the number of times I've said "have you tried doing what it says in the error?" and it was the right answer haha.
April 14, 2025 at 1:31 PM
I like the direction! I feel like this will let me make the zod-form-data API feel a lot more zod-native.
April 11, 2025 at 7:59 PM
I think in a perfect world enum values would have their own semantics. Something like Ocaml's polymorphic variants would feel javascripty, IMO.
April 4, 2025 at 4:36 PM
That's a good point about serialization. Defaulting to symbols would help, I think. As long a we won't default to numbers starting from 0 haha.
April 4, 2025 at 4:28 PM
IMO, if I was writing the v1 for this proposal I'd probably opt to start auto-initialized only and use Symbols as the default initializer.
April 4, 2025 at 1:38 PM
The fact that `MyEnum.foo` just returns the value of the initializer has always made it feel like unnecessary sugar. And you can always just skip the enum and use the initializer directly if you want. My dream enum would be nominally typed or at least return some sort of special enum value.
April 4, 2025 at 1:37 PM
The semantics of TS enums is part of why I don't like them, so it's kind of annoying that the proposal just wants to replicate that as closely as possible. 😮‍💨

At least they're not introducing auto-initializing as numbers right now so that's better.
April 4, 2025 at 12:01 PM
I guess that last part is obvious actually. Shows how little time I've spent with server components 😭
February 1, 2025 at 2:52 AM
I haven't tried the React compiler so that's totally possible. But since the promise has a consistent identity on every render this seems like it should be okay.

Also worth noting that this is in a SPA so it's client-side code.
January 31, 2025 at 9:51 PM
I've recently started using `useSuspenseQuery` and managing loading states feels way nicer to me.

And even without prefetching, I think it's more natural to avoid request waterfalls.
January 11, 2025 at 6:59 PM
That just feels so wrong haha. It's not subtle but it isn't flashy either. Is just 🤢
January 10, 2025 at 2:27 PM
Oh and

Device: Galaxy S21 ultra
Browser: chrome opened within Bsky
December 31, 2024 at 10:00 PM