Colocating GraphQL Fragments... huh?

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

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

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

    I like these videos Leigh

  • @MounirDhahri
    @MounirDhahri 4 года назад

    Thanks for the nice tutorial man

    • @leighhalliday
      @leighhalliday  4 года назад +1

      No problem! Glad you enjoyed it Mounir!

  • @Skia_
    @Skia_ 4 года назад

    great tutorial mate, i had no idea that you could do something like that in GraphQL!
    my question is, say you have a ton of languages being returned from the query in which cases you'll most likely load and render them in chunks using a pagination component or whatsoever, but what if you wanna show a skeletonComponent or spinner whenever you wanna load the next chunk of languages and take advantage of the { loading } property returned from the useQuery hook - that would usually force the entire page to load while in my case i'd only want the pagination component to load. would using fragments help with this? ;D

    • @leighhalliday
      @leighhalliday  4 года назад

      There maaaay be a way, but I think in that case it might be better to just have that as a separate independent query. As long as you're using the HTTP Batch link, it can hopefully make the 2 queries within the same HTTP request, so won't hurt your performance too much.

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

    Why do so many tutorials not use TypeScript. If you are using GraphQL it's almost a given that you will use TS.

  • @mortezatourani7772
    @mortezatourani7772 3 года назад +1

    I guess you haven't record the typescript video yet since there is no link in the description

    • @leighhalliday
      @leighhalliday  3 года назад

      Don't think I got around to that one, sorry Morteza!

    • @mortezatourani7772
      @mortezatourani7772 3 года назад

      @@leighhalliday Never mind. I know you'll do it if you find a chance :)

  • @LeeXiangWei
    @LeeXiangWei 4 года назад

    great

  • @ayuktia6397
    @ayuktia6397 4 года назад

    How about the performance?

    • @leighhalliday
      @leighhalliday  4 года назад

      I haven't noticed any performance issues, but I haven't done any empirical testing either!