The Nuxt Plugin Object Syntax - Wins for Perf, DX and Logic!

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

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

  • @TheAlexLichter
    @TheAlexLichter  9 месяцев назад +2

    Are you planning to use the object syntax now? 👀

  • @Saeid-Za
    @Saeid-Za 9 месяцев назад +2

    Thank you so much for providing such amazing content ❤.
    The developer experience of Nuxt is unparalleled. Every aspect of the framework's API is engineered with great care, and even better, these improvements come with free performance boosts.
    A huge thank you to Daniel and all other contributors for creating such an incredible framework.
    Please keep the regular uploads coming 🤘.

    • @TheAlexLichter
      @TheAlexLichter  8 месяцев назад

      Thank you so much for the kind words 🙏🏻
      Really delighted that you enjoy using Nuxt and that the content is helpful 🔥

  • @wat_question_mark
    @wat_question_mark 9 месяцев назад +1

    not only well versed and smart, but also handsome!

  • @AlexZhlobnytski
    @AlexZhlobnytski 3 месяца назад +2

    Thanks mate for your great job, keep it up

  • @ojvribeiro
    @ojvribeiro 9 месяцев назад +2

    Nuxt is the GOAT ♥

  • @виртуоз_ру
    @виртуоз_ру 9 месяцев назад

    Хорош 👍
    Твои видео уже нужно в документацию Nuxt включать.

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

    Why should I define some functions as a plugin (like the $api) instead of importing it explicitly?

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

      You can also import them explicitly but the initializing (eg passing runtime config values) might be more tedious.

  • @mnmb961
    @mnmb961 5 месяцев назад

    Is it a good practice if i were to intiate db connection via plugin server so that it can be used throughout the apps ? Thanks

    • @TheAlexLichter
      @TheAlexLichter  5 месяцев назад +1

      I’d do this in a nitro plugin ☺️

    • @mnmb961
      @mnmb961 5 месяцев назад

      @@TheAlexLichter can we do the object syntax for nitro plugin also as in nuxt plugin ?

  • @fikreteliyev2266
    @fikreteliyev2266 9 месяцев назад +2

    Please show nuxt api interseptor (look like vue axios interseptor)

    • @TheAlexLichter
      @TheAlexLichter  9 месяцев назад +2

      Sure thing! It is documented here and should work - github.com/unjs/ofetch?tab=readme-ov-file#%EF%B8%8F-interceptors but I will dedicate a video to it 👍

  • @wolfphantom
    @wolfphantom 9 месяцев назад

    my $api isn't being typed by Nuxt, so while it IS present on the NuxtApp it isn't including in the type definition and appears as "unknown"

    • @TheAlexLichter
      @TheAlexLichter  9 месяцев назад

      Even after restarting the dev server? 👀

    • @wolfphantom
      @wolfphantom 9 месяцев назад

      Yes. Even after a restart, and I’ve also extended the interface in an index.d.ts file as per the website without success.

    • @TheAlexLichter
      @TheAlexLichter  9 месяцев назад

      @wolfphantom do you have a reproduction to take a look at? 😊

  • @dlef
    @dlef 9 месяцев назад

    could you speak about lots of visits and how to deploy the thing without the corps ? thks you if you do

    • @TheAlexLichter
      @TheAlexLichter  9 месяцев назад

      What do you mean with “without the corps”? 👀

  • @Ayvengo21
    @Ayvengo21 5 месяцев назад

    Some times i just hate those auto load magic because as rule it completely different between frameworks and so you always have to learn all those things from scratch.

    • @TheAlexLichter
      @TheAlexLichter  5 месяцев назад +1

      Luckily you can also fully opt out of them 👌🏻

  • @tiago86g
    @tiago86g 9 месяцев назад

    Great video again! :)
    Can you make a video comparing building a package vs a Nuxt module

    • @TheAlexLichter
      @TheAlexLichter  8 месяцев назад

      Thanks!
      You mean building an NPM package vs. Nuxt module?

  • @Gaijin101
    @Gaijin101 8 месяцев назад

    Would a NitroPlugin be similar?

    • @TheAlexLichter
      @TheAlexLichter  8 месяцев назад

      Actually not! Nitro plugins are unrelated to Nuxt and run only on the server. It is quite different 😁

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

    what if i want to use fetch raw?

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

      Not sure I understand the question. $fetch.raw should work fine ☺️

  • @productdevbook
    @productdevbook 9 месяцев назад +1

    Thank you

  • @EvestDev
    @EvestDev 6 месяцев назад

    2:57 OOP