Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ

3.5K posts

Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ

Dan M ๐Ÿ‡บ๐Ÿ‡ฆ๐Ÿ‘จโ€๐Ÿ’ป๐ŸŽพ๐Ÿš˜๐Ÿณ๏ธโ€๐ŸŒˆ

@devuxer

UI/UX designer/prototyper/developer in San Diego. Tennis & automobile enthusiast. ๐Ÿณโ€๐ŸŒˆ him/his. @[email protected]

San Diego, CA Joined Ocak 2012
257 Following141 Followers
Cory House
Cory House@housecorยท
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.
English
1
0
6
2.1K
Cory House
Cory House@housecorยท
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?
English
3
0
19
6.2K
Kent C. Dodds โšก
Kent C. Dodds โšก@kentcdoddsยท
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โ€ฆ
Kent C. Dodds โšก tweet media
English
55
25
352
82.9K
Kent C. Dodds โšก
Kent C. Dodds โšก@kentcdoddsยท
@_dylandover Sure, but readability is subjective and a function of familiarity. None of the options is more readable than the other.
English
2
0
0
1.3K
Brad Gilbert
Brad Gilbert@bgtennisnationยท
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โ€ฆ..
English
45
3
105
59.8K
Dan Shappir (host on @JSJabber podcast)
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.
English
3
3
24
2.4K
Jon Wertheim
Jon Wertheim@jon_wertheimยท
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โ€ฆ.
English
35
67
907
72K