Комментарии •

  • @codinginflow
    @codinginflow Год назад +2

    Your videos are so calm, well explained and cover important topics. One of my favorite React related channels 😍

  • @darkwoodmovies
    @darkwoodmovies День назад

    Yo this is so ILL holy f**k I'm in awe.

  • @rfmiotto
    @rfmiotto 2 года назад +1

    As always, an amazing material, Sam! You nailed the question I (and other folks) had from your previous video. Please keep up with more content! Cheers

  • @NeerajLagwankar
    @NeerajLagwankar 2 года назад +1

    I'm just binge watching all of your videos. You explain concepts really really well! Thanks!

  • @generalwill10
    @generalwill10 2 года назад +33

    I like your thought process Sam. I’d pay for a course if you decide to make one

    • @samselikoff
      @samselikoff 2 года назад +4

      That means a lot - thank you so much!!

    • @jimshtepa5423
      @jimshtepa5423 2 года назад

      I would pay too. I really liked the tw course on egghead

  • @mryechkin
    @mryechkin 2 года назад +3

    Awesome demo. The DX is really so much more improved with this architecture. I'm excited to see this make its way into more libraries when Suspense is finalized

  • @adamdrake39
    @adamdrake39 Год назад

    I have never used suspense before... I am sold and will now be checking out your other two videos!

  • @boredhuman23
    @boredhuman23 2 года назад +3

    Simple demo but executed beautifully.

  • @sabrinapyles563
    @sabrinapyles563 Год назад

    Great example, and very clearly explained. Thank you!!

  • @kelvinkyendwa
    @kelvinkyendwa 2 года назад

    Simple , clear and easy to follow along

  • @debs1991
    @debs1991 7 месяцев назад

    So clean explanation and calm presentation. Loved it :)

  • @wusswuzz5818
    @wusswuzz5818 Год назад

    This was excellently delivered.

  • @jakemetz1742
    @jakemetz1742 Год назад

    Well thought out presentation to the subject based on made-up business requirements.

  • @saidinusah
    @saidinusah 2 года назад

    Thanks for making your videos short but very helpful

  • @danielsousa5611
    @danielsousa5611 Год назад

    Thank you!! I didn't know SWR.

  • @PrevalentAA
    @PrevalentAA 2 года назад

    Thank you for this video, really helpful!

  • @vx1724
    @vx1724 Год назад

    really good explanation, thank you

  • @andrepadez
    @andrepadez Год назад

    you just got yourself a new subscriber and lurker

  • @kinnegie
    @kinnegie Год назад

    Good explanation, thank you much

  • @Stoney_Eagle
    @Stoney_Eagle 2 года назад +2

    I use this to catch a chunk 404 when I have pushed a new commit. I reload the page when that happens. So far that works great 😉

  • @marwenlabidi_dev
    @marwenlabidi_dev Год назад

    thank u for this great quality content

  • @savannahtechstack8463
    @savannahtechstack8463 Год назад

    Awesome video, thanks

  • @codinginflow
    @codinginflow Год назад

    It's interesting to note that the SWR docs have a warning at the topic saying "React still doesn't recommend using Suspense in data frameworks like SWR (More information)"

    • @samselikoff
      @samselikoff Год назад +1

      I guess SWR may not be getting as much attention since RSC replaces a lot of the use case for it. Still useful though and there will still be use cases for client side data fetching, and suspense is definitely ready to go!

  • @ferhatdursun5689
    @ferhatdursun5689 Год назад

    Thank you

  • @lukeyd13
    @lukeyd13 2 года назад +1

    Another great video, one question, how would you trigger a refetch from your error state? The fetch happens in the child but we have caught the error in the parent. How to add a retry button. Thanks again for the stellar content

  • @cheungmarco483
    @cheungmarco483 2 года назад

    Thanks for your helpful video. Just wondering is Suspense and Error Boundaries works if I originally fetch my data using anonymous async function in useEffect with axios in the component? Since I saw you are using useSWR. Thanks again.

  • @Luke_UPPX
    @Luke_UPPX 2 года назад

    Thanks

  • @KamrulIslam-wj1ky
    @KamrulIslam-wj1ky Год назад

    Hi! Thanks for your quality content. When error happens, is there any way to add a try again button that will try to call api again?

  • @carlosbenavides670
    @carlosbenavides670 Год назад

    Nice Video and thanks for sharing.
    It seems the tradeoff here is a bit of performance (Creating Network waterfall) since the app needs to wait for the whole content to load.

  • @Troy-ol5fk
    @Troy-ol5fk 2 года назад

    From a user's standpoint, one loading spinner is much less stress inducing than three

  • @tbcfrankee
    @tbcfrankee Год назад

    Can you explain what shortcuts you used to select your component and then wrap it with Suspense at 1:30?

  • @sova8972
    @sova8972 Год назад

    What is this VS Code shortcuts sorcery?? Good explanation. I like your style.

  • @converter
    @converter 2 года назад

    Mind if I ask what's your VS setup like and shortcuts?

  • @fuhoo5836
    @fuhoo5836 2 года назад

    what editor do you use?
    i use neovim and am not sure how i would do the multiline edit as you are doing.

    • @samselikoff
      @samselikoff 2 года назад

      I use VS Code with the Vim extension

  • @arditgashi8850
    @arditgashi8850 2 года назад +1

    Hey, love your videos, can you show more about how we can optimze coding speed? I see you grab all your stats with vs code, maybe you can create a small video about that if you have time.

    • @samselikoff
      @samselikoff 2 года назад +3

      I should make a React focused video but for now check this one out! ruclips.net/video/qIHR2wmxy3U/видео.html

  • @tech3425
    @tech3425 Год назад

    Hey Sam, I'm guessing you're using vim motions in your editor. What is the shortcut you're using to select next occurrence of tag @1:27? Like when you highlight the line using visualLineMode, and then highlight the next matching lines and then go ahead to edit them. What is the key combo for doing that?

    • @user-pr4ez7hn6u
      @user-pr4ez7hn6u Год назад

      Ctrl + D for every next occurrence you are willing to select -> Ctrl + Shift + L to match all occurrences at once

    • @tech3425
      @tech3425 Год назад

      @@user-pr4ez7hn6u Is that specific to VSCode? Cause Vim has a mapping of PageDown to Control+D

    • @tech3425
      @tech3425 Год назад

      @@user-pr4ez7hn6u Although, Cntrl+Shift+L is working as you said 👍

  • @augedoo8409
    @augedoo8409 2 года назад +1

    Hi Sam. I've been searching for how to do this code formatting trick at you pulled off at 1:26 . Can you please tell me how you it's done?

    • @samselikoff
      @samselikoff 2 года назад +1

      +D on Apple in VSCode, it's called "Multiple selections" code.visualstudio.com/docs/editor/codebasics#_multiple-selections-multicursor

    • @augedoo8409
      @augedoo8409 2 года назад

      @@samselikoff thanks but i happen to be on windows.

  • @tshddx
    @tshddx 2 года назад +1

    1:27 Any chance you could do a really quick screenshare of how you're doing that multiple cursor suspense tag nesting thing? I might be the last developer in the world to adopt multiple cursor editing!

    • @samselikoff
      @samselikoff 2 года назад +2

      Check out this timestamp from my Shortcuts + Extensions video! ruclips.net/video/qIHR2wmxy3U/видео.html

    • @tshddx
      @tshddx 2 года назад

      @@samselikoff Perfect, thanks!

  • @user-kr6lp7rm5y
    @user-kr6lp7rm5y 2 года назад

    How use suspense with fetch, without libraries?

    • @samselikoff
      @samselikoff 2 года назад +1

      Check out the excellent suspend-react library! github.com/pmndrs/suspend-react

  • @markokraljevic1590
    @markokraljevic1590 2 года назад

    why dont you explain what actual "signal" Suspense component uses to detect that child component fetches something and it is in loading state?

    • @samselikoff
      @samselikoff 2 года назад +1

      The child component throws a promise that resolves whenever its data fetching is complete. That's how the parent knows if it's loading (promise is in a pending state) or it's ready (promise is resolved). I talk about it some here: ruclips.net/video/FpFetyxapto/видео.html

    • @markokraljevic1590
      @markokraljevic1590 2 года назад

      @@samselikoff thank you

    • @markokraljevic1590
      @markokraljevic1590 2 года назад

      @@samselikoff so component is just a function but its not marked with async if it has await in useEffect for example, i havent looked at FC return type to know precisely... there is no concept of sync and async components, im not sure its trivial for parent component to detect pending state of the child, it requires data from inside react itself, thats why only React team could implement such component like Suspense, sorry i didn't explain this very clearly, but it frustrates me that even React docs explains how to use it without clearly explaining how it works inside, almost presenting it like its magic or black box

  • @neiker234
    @neiker234 2 года назад

    But you changed the design. Designers will be unhappy