Charlotte Isambert - The suspense quest Inside React's Magic

Поделиться
HTML-код
  • Опубликовано: 22 ноя 2024

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

  • @bhoboghureycompany
    @bhoboghureycompany 14 дней назад +4

    One more interview answer, sorted! Amazing talk!

  • @Skalexsong
    @Skalexsong 15 дней назад +2

    Cool and simple explanation, thanks!

  • @internethistory6957
    @internethistory6957 16 дней назад +6

    one of the be explanation i have ever watched

  • @martinemanuel8239
    @martinemanuel8239 17 дней назад +3

    Amazing talk !

  • @qazyhn94
    @qazyhn94 12 дней назад

    really good talk, rare nowdays

  • @ivan.jeremic
    @ivan.jeremic 15 дней назад +2

    Amazing talk congrats!!!

  • @kyuss789
    @kyuss789 12 дней назад

    Awesome talk, I would have dropped to focus on requests and queries. Suspense just works with promises, it doesn’t can’t what those promises are doing.
    Also you kind of missed some nuance with the suspense parent rerendering before the promise is resolved. You need to make sure to throw the same promise if it’s not resolved yet. So you need a stable cache to hold the reference to the promise so you can keep track of it and keep throwing it till it’s resolved. Otherwise you just keep making new promises on every render
    Easier way to do that is to put to make the promise above the suspense in a memo then pass it into the children and then throw it, this is basically what the new use hook does