TIL

    TIL that the recommended way to sync props to state in React is to set the state directly in the render. You Might Not Need an Effect is a great doc. In my exact case, I replaced something like this (which is a hooks violation)

    useEffect(() => {
      setInternalValue(defaultValue)
    }, [isVisible])
    

    With something like

    const previousVisible = usePrevious(isVisible)
    
    
    if (internalValue !== defaultValue && previousVisible !== isVisible) {
      setInternalValue(defaultValue)
    }
    

    TIL that there’s no documented way to control the header background tint while using the default appearance on iOS 27. I’ve seen some apps appear to have a different color than just the bleed through, but no matter what I tried to do (even sending a clanker to look through private symbols) I couldn’t find a way to set it manually

    TIL that Argentinian goalkeeper Emiliano Martinez had more saves in the World Cup final than the Spanish goalkeeper had in the entire tournament (11+ to 10).

    I found this whole situation to be a lesson in media/coverage bias. I seldom heard anything about Spain during the tournament, and their odds were laughably low to win the tournament even when they made it to the semifinals. Then suddenly they beat France and Argentina, and it felt like everyone wanted to come out of the woodwork to talk about how clear it was that Spain were the best team in this tournament and they showed it all along. I should have watched more games and listened to fewer podcasts

    TIL that there are very few distinguishing characteristics of bratwurst vs other kinds of sausage. It mostly just needs to be made from pork. Really, what I’m buying when I look for bratwurst is just… German style sausage.

    TIL about the concept of a factitious disorder (not ficticious), where someone reports and acts consistently unwell, but has no diagnosable issue nor any obvious motive for why they would want to feign illness

    TIL what a Pincushion Protea flower is. I’ve seen them around plenty of times, but put a name to them today

    TIL that there are multiple different published specs for how to provide alternative formats for a podcast (e.g. audio + video). There doesn’t seem to be clear agreement on exactly which tag you should use, but it does seem understood that you can only have one <enclosure> item. Nonetheless, we found some podcast providers that go ahead and put multiple <enclosure> tags in their feeds, and we had to add new code to prefer one that matches /^audio\/*/

    TIL that in Sentry, you can add custom attributes to user, but you can’t filter on them. You have to add them as other types of custom attributes. Sort of a weird restriction, and it would have been nice to keep more data with user, but at least we know!

    TIL that when you use expo-audio, it’s critical to call release() on any audio instances during cleanup. It’s mentioned in the docs that it’s important, but the release() method isn’t listed in the documented methods, which led to a bit of confusion on our team and a really weird bug (audio playback continued on Android even after closing the app)

    TIL that Harry Truman was president during the declaration of the State of Israel. He was one of the few Vice Presidents to ever take over because of a death. It’s just odd to know that such a world historic event was presided over by a man who was only elected as Vice President. History is weird.

    TIL that Imogen Heap composed the music for Harry Potter and the Cursed Child. Notably, it sounds like it could have come directly off of Speak For Yourself

    TIL that most of the cost of renting a U-Haul comes from the mileage charges. I’ve never actually rented a U-Haul, and I always see them advertised on the trucks as $19.95/day. Turns out that $20 truck is $150 if you drive it 70 miles 🥴

    TIL that there’s a known issue with react-native’s built in Pressable components potentially not receiving press events when inside any kind of native element (e.g. a header). For some reason this seems to rear its ugly head most often on the iPhone Xs. That’s where our team saw it, and what this issue points to.

    Chasing this bug down has been a bit of a light bulb moment for me in terms of how difficult it can sometimes be to wrap your head around a native bug. Why does this issue seem to effect the iPhone Xs? Why not the iPhone X? Why not later phones with the same viewport and notch? Sometimes there’s just… things that happen on native devices and I lack the intuition and insight to deeply understand why

    TIL that there are 90 players in this World Cup who were born in France, but only 26 are playing for France. That’s a remarkable statement about French football culture

    TIL that Sentry allows for seemingly unlimited custom attributes on errors, and those custom attributes can be used to filter issues. That allows for much more meaningful segmentation of issues, and understanding how certain attributes affect error rates

    TIL - Expo’s Repack is back on the table for us. They recently implemented fastlane’s ios_signing_use_source_app_entitlements option so we can successfully repack for internal builds. This can lead to a huge improvement in “build” times. I recently saw one as short as 2 minutes

    TIL that the Mexican National soccer team has lost only three matches in their Mexico City stadium since it opened over 50 years ago

    This is largely credited to elevation. It was interesting to consider the severity of the elevation, since I’ve heard lots of chatter about the elevation affecting F1 races there too

    TIL that magnesium is the element that burns bright white in fireworks. Credit to a coworker who has history running professional fireworks shows

    TIL just how small space capsules can be. We went to the San Diego Air and Space Museum today, and they had models of a couple of the capsules that were first into space. They’re mostly set up for kids to play with because the real one was barely big enough to hold an adult. I can only imagine how lonely, frightening, and intense it would have been to be there

    TIL that in Linear, even though labels can be team specific, you can still create a workspace view that takes all team labels into account. This makes for a powerful way to organize cross-team work without having to reach for workspace customizations

← Newer Posts Older Posts →