Fixing a React navigation bug

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ก.ย. 2024

ความคิดเห็น • 29

  • @DS-ow2ge
    @DS-ow2ge ปีที่แล้ว +30

    this is such a good structure for video content, i hope you do more of these

  • @rthaut
    @rthaut ปีที่แล้ว +21

    I was grinning ear to ear watching this; you guys rock! I was soooooo nervous sharing a code-base that I have iterated on here and there (basically as a side project for learning new things) for several years now, especially without any sort of hand-off (minus that info page). But you dug right in and made so many wonderful improvements incredibly quickly! You both also asked questions I was always asking myself (like what navigation does the "Close" button perform?), so listening to you reason through that and come to the same conclusions I did was cathartic!

    • @samselikoff
      @samselikoff  ปีที่แล้ว +1

      @rthaut I’m so glad you shared it - I know it can be hard to share code so publicly but like I said in the video, it really was an excellent codebase! Being vulnerable like you did is 100% the best way to keep improving, and I’m grateful for it because I also learned so much going through it. Fantastic job on the app, it looks great, and cheers again for the share. Keep on getting after it man! 👊

  • @bs8028
    @bs8028 ปีที่แล้ว +5

    I love the way how people start understanding how react rly should work. Thanks to next js app router and how it force us to do things right even in pages. You are soo good at this.

  • @ashleyredman
    @ashleyredman ปีที่แล้ว +1

    Really love this format, perfectly fits content for buildui too. Love it

    • @samselikoff
      @samselikoff  ปีที่แล้ว +1

      Curious, would you want to see this same sort of video on buildui, or were you thinking just the actual content but as a more formal / polished series over there?

    • @ashleyredman
      @ashleyredman ปีที่แล้ว +1

      @@samselikoff I think this format would work great on buildui itself. Maybe something like 'refactoring sessions' or similar. Picking up submissions from the community and giving it the sam & ryan magic ⭐
      It's a great mix of your current buildui content which is very informative/lesson format, where as this takes it to the next level by going through real world code, more of a pairing session.

    • @samselikoff
      @samselikoff  ปีที่แล้ว

      @@ashleyredman awesome, love this idea. Thanks for the idea!

  • @lukehatcher98
    @lukehatcher98 ปีที่แล้ว +1

    Incredible video. Thank you. I learned so much.

  • @mike-2342
    @mike-2342 ปีที่แล้ว

    Nice one guys. A really entertaining watch

  • @Marcus-Lim
    @Marcus-Lim ปีที่แล้ว +1

    Super valuable content, thank you.

  • @SeanCassiere
    @SeanCassiere ปีที่แล้ว +1

    That navigation discourse was quite interesting.

  • @Happyday-nn6rh
    @Happyday-nn6rh ปีที่แล้ว

    Awesome ❤‍🔥 I can just say more more like this 🙏🙏

  • @adebiyial
    @adebiyial 11 หลายเดือนก่อน

    Great video. As for the router back/replace/push problem, I think what should matter here is the UI. When you "close", it's like you are removing from the stack of interfaces. What is behind the modal is the homepage so that's what matters. The user doesn't really think of "close" as "navigating" away, they do as a way removing the modal so that can see what's underneath.
    Also, typically you want to name onClose, handleClose. Because you're basically it's the event handler. onClose=onClose is a bit redundant. onClose=handleClose reads better.

  • @feossandon
    @feossandon ปีที่แล้ว +1

    Interesting the new video format, love it! It could be interesting to replicate the island that Apple used on the iPhone 15 presentation landing page. Regards!

  • @tek9ine130
    @tek9ine130 ปีที่แล้ว

    You are amazing, Sam!

  • @cameronadams4366
    @cameronadams4366 11 หลายเดือนก่อน

    do this more ❗❗❗

  • @munnakumarbarnwal1694
    @munnakumarbarnwal1694 10 หลายเดือนก่อน

    If we add key prop in SlideOver component inside DigitalDirectory, animation doesn't work. Is there any specific reason for this? How could it be solved? (Just experimenting).
    Thanks :)

  • @mobythereal
    @mobythereal ปีที่แล้ว

    you are genius

  • @madatbay
    @madatbay ปีที่แล้ว

    I couldn’t catch the persons name yon mentioned at the end of video about refactoring ui. I get Steve Sugar, but couldnt find X account of him. Who is that person?

    • @ephcrat
      @ephcrat ปีที่แล้ว

      Is Steve Schoger (@steveschoger)

    • @samselikoff
      @samselikoff  ปีที่แล้ว +1

      Yep that’s him! Here’s a link to all of his design tweets: x.com/i/events/994601867987619840?s=21&t=k4XEISmV-XBZYtw2JeE4ow

  • @nonefvnfvnjnjnjevjenjvonej3384
    @nonefvnfvnjnjnjevjenjvonej3384 ปีที่แล้ว

    basically the trick with react is to "dont do stuff". try and keep things as simple as possible. honestly its react's fault for giving so many hooks which can lead to subtle errors like this useEffect one. it's really not thought through well. i hope in a future version they remove hooks and bring in something else.

    • @samselikoff
      @samselikoff  ปีที่แล้ว

      Definitely “do less” is often the correct way to fix issues like this in React. I love hooks and think useEffect is great, but it’s true it can be so easy to reach for and can sort of “fix” issues where it’s not appropriate. I don’t think they should remove it but I do think the right way to think about effects is, interacting with an external system (browser APIs, the network, etc.). If you ever have an effect that is only reading and writing React state, you probably don’t need it.

    • @nonefvnfvnjnjnjevjenjvonej3384
      @nonefvnfvnjnjnjevjenjvonej3384 ปีที่แล้ว

      @@samselikoff thats a better and more balanced way of putting it :P

  • @soumyanilpodder8435
    @soumyanilpodder8435 ปีที่แล้ว

    Nice video Sam, really like the content, learnt a ton from this video, hope you do more of these videos.👍