Update: My mental model was flawed.
The solution is simple: it’s my responsibility to decide what happens when an error occurs.
For instance I can catch the error in the action and return the optimistic state along with error metadata. This way the optimistic data isn’t lost.
React 19’s useOptimistic hook automatically rolls back if an optimistic update fails.
What if I want to disable this behavior?
I want the data to keep displaying even if the update fails so the user can click retry.
I’m surprised this isn’t an option.
Am I missing something?
While I'm on the topic of type hovering, has your team ever considered the possibility of showing type names (as it does with interfaces) instead of only definitions? There are times the definitions are just overwhelming (even with ellipsis shortening them somewhat). Thx!
Hey @mattbierner Not sure if this is a TS or VSCode issue, but are you aware of any recent changes to the way type information is displayed when hovering an item? For complex types, I find myself scrolling endlessly to get to the very end, where I finally land on: `} | null`.
@TheBodyServe, hard agree that they should not be experimenting with disruptive rules changes during the main draw of a 500 event, but if any other tournaments want to pull a similar stunt, can it please please be a shot clock between first and second serve, and also after a let?
@JSJabber This is the only podcast I follow where the ads come in mid-sentence. Not objecting to the ads, just the timing. Can you please fix this? I use Apple Podcasts in case that matters.
@kentcdodds The only one I agree with is trailingComma.
In general, I think trailing things affect readability a lot less than embedded things, so I don't mind extra semis or commas at the end, but I do mind unnecessary paens around single-var lamdas.
I just wrote a blog post justifying this prettier config. If your config is different, read this and let me explain why you're wasting time babysitting parts of your code that don't matter: epicweb.dev/your-code-styl…
@kentcdodds@_dylandover You can certainly measure readability objectively, but you first have to agree on what to measure, which is subjective. Intuitively, though, extra parentheses surrounding a variable name would seem to slightly harm the readability of that variable name.
@kelseyhightower If you pronounce miserable with a French accent, it makes you feel a little less miserable. Even a bad French accent, which I most certainly have 😆
@rachelkrau Love the glossary (nngroup.us4.list-manage.com/track/click?u=…), but I have one suggestion: could you specify that the Golden Ratio is ~1.62:1. Otherwise, we are sitting here going, But what actually *is* this glorious ratio?
@TheBodyServe Entertaining but also important episode. TY🙏
Couple comments:
- Courier has at least mentioned That Guy's legal situation. Roddick as well, on his podcast.
- I could have missed it, but NBC deserves lambasting for not showing the trophy ceremony.
@Served_Podcast Love this pod so much except for one thing: the SwingVision segment at the end is always someone doing a trick shot. I want to see Andy break down a 3.5 player’s FH (or BH, serve, volley, overhead, etc.) and suggest realistic improvements. I bet I’m not alone.
@bgtennisnation@FlipBlue2024 Best case scenario for the hotel restaurant is you paid too much for a decent meal. This example is pretty close to the worst case. Would complain.
Need to vent just had a 2+ hr dinner 🥘 at my hotel 🏨 that was beyond shocking 😳 1st time eating there for dinner in 14 days, took forever and they served Zoe raw chicken 🍗 then brought back after 45 mins with same silverware 🥄 on table and got everything wrong on my order…..
@syntaxfm I would add Ant Design to your list of UI kits. I use it for prototypes, dashboards, & small projects because it has ALL THE THINGS (layout, forms, controls, icons, tables). The basic look and feel is baked in, but it is themeable. Docs are okay. It’s free, unlike MUI.
@jherr Hey Jack. Trying to join your Blue Collar Coder discord using the link on your GitHub profile (discord.com/invite/RQrAKPrq), but I'm getting an "Invite Invalid" error.
@DanShappir I 100% want Israel to succeed. I just wish I knew what that meant. I know I want Israel to exist and thrive and for the Israeli people to be safe. I just don’t know how that happens. It seems like every option on the table is shit.
The people calling for an immediate ceasefire in order to prevent suffering for Palestinian civilians are making the best case for Israel to never allow a Palestinian state to exist: if the government of such a state can attack Israel in the most vile way possible, and then hide behind its own citizens in order to avoid reprisal, then Israel cannot allow such a state to exist.
@DanShappir Listen to you all the time on JS Jabber, and just had to reach out and say you’ve been in my thoughts a lot these past few days. Hoping you and your loved ones stay safe, and Israel emerges stronger when all is said and done. ❤️
@jon_wertheim@usopen@CincyTennis To those who watched, absolutely, but weren't we already going to be excited about the US Open? The question is, how do we get the average sports fan to even watch matches like this given most providers don't carry Tennis Channel (or require an extra package if they do).
The @usopen owes @CincyTennis a serious marketing and promotion fee… These two matches today do more to kindle interest in the USO than any billboards or digital ad buys….