Are You Following This Vue Best Practice?

Поделиться
HTML-код
  • Опубликовано: 19 апр 2022
  • Prop stability is an important concept in Vue. By eliminating unnecessary updates, we can improve the performance of our app.
    ✅ FREE VUE 3 CHEATSHEET WITH ESSENTIAL CODE SNIPPETS
    learnvue.co/vue-3-essentials-...
    follow me on twitter:
    / mattmaribojoc
    🚨 Like quick Vue lessons like these? Check out 800+ lessons over on Vue School - go.learnvue.co/vueschool
    Music by Lukrembo - Storybook

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

  • @Ma1ne2
    @Ma1ne2 2 года назад +207

    I would like to see more "best practices" videos!

    • @joshuatye1027
      @joshuatye1027 19 дней назад

      This example is based on the one from the docs. Just read the docs.

  • @ThaRealIansanity
    @ThaRealIansanity Год назад +7

    Thank you. Simple yet very important concept. Adding to my checklist "prop stability analysis"

  • @Pineconeman10
    @Pineconeman10 2 года назад +22

    your Vue videos are top tier. super helpful, intuitive, concise, and interesting. thank you and please keep it up!!!

  • @CapitaineToinon
    @CapitaineToinon 2 года назад +18

    Oh my god this is the type of stuff I nerd over please more tips like that! Great video 👍

  • @RodrigoDAgostino
    @RodrigoDAgostino 2 года назад +15

    Beyond any doubt this is one of your most useful videos :)
    It’s not that easy to run into recommendations like this, so I would really appreciate it if you could share some more best practices with us
    And as always, thank you! :)

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

    I've stopped stopped liking your videos after watching them, I just press play, like and get wowed, you never disappoint and that's just the honest truth.

  • @ramina2121
    @ramina2121 2 года назад +8

    Great video!! thanks
    I like this short kind of tips/tutorials. It is easy to watch.

  • @fifthavenue2105
    @fifthavenue2105 2 года назад +9

    I've started learning vuejs a few weeks ago and this channel helped me a lot!

  • @7red4
    @7red4 2 года назад

    Didn't notice that before. Helps a lot! Thank you!

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

    Amazing. I am just creating an image gallery that I know will hugely benefit from this knowledge. Thank you so much for sharing 🙂

  • @anbuselvanrocky
    @anbuselvanrocky 2 года назад +5

    Great. Indeed useful. Making videos like this will improve your subscribers very soon. Good luck and keep posting useful videos like this.

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

    Hi, thanks for video! I really like you channel.
    There is a siren sound in the theme, and I never pay attention to it, till this war. So interesting how human noticing different things

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

    This is great! Thanks for sharing.

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

    Like your short and very informative videos

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

    Awesome video! Thanks a lot

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

    Simple and effective!

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

    No, i'm definitely not following this practice, until now...
    Tks dude! 😄💥

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

    That's actually a nice tip. I really like this one

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

    Great video!!

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

    super helpful 🥰

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

    Thanks!

  • @AbubakrSiddique-splenify
    @AbubakrSiddique-splenify Месяц назад

    Insightful

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

    Im gonna start doing this

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

    Quality content. Loved it.

  • @riyad-appscode
    @riyad-appscode 2 года назад

    more videos like this please

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

    Sir please make a video.... How to bundle vue3+ with django

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

    makes perfect sense

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

    I would like those type of videos

  • @user-rz7xz4wf8p
    @user-rz7xz4wf8p 3 месяца назад

    Great!

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

    Amazing tip.

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

      Glad you think so!

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

    Fireship tone clone :)
    Instructional ++

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

    Does the component also rerender when a bound attribute is changed that the component does not define as a prop? For example when binding $attrs to a child.

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

      Why would it?

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

      @@dvdrtrgn It's a reactive property bound to the component just like a prop

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

      @@UBERDHOKER So only if the attr has a reactive value bound will a rerender be triggered upon an $attrs change.

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

    How about an Object prop ? Does it trigger an update if the children component mutate the value of an attribute of the Object prop ?

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

    Scary but powerful

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

    Is this code editor vs code?

  • @hacking-multiboot904
    @hacking-multiboot904 Месяц назад

    Woooo

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

    Amazing! Do you have a discord channel?

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

      i've been thinking of making one...you interested?

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

      @@LearnVue Yes! Would be really appreciated!

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

    That’s funny because I literally made this mistake and codepen was throwing an error on my code ! (Vs code wasn’t)

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

    Basicaly just pass the minimum amount of data

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

    Why Vue is so esoteric and complicated.

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

    This is actually a bad practice. The component should be written so that they do not update if not needed. The issue of the solution mentioned in the video is that it moves logic out of the component....

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

      How would you go about this? Could you provide an example?

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

      @@joseisrael2946 sorry, I do not remember this exact issue and do not have time to rewatch it now. All I remember is thar he duplixates some part of the logic out of the component to detect if the component should be updated And that is totally against the idea of compobents - packing all related code, logic, etc at one place.
      If you ever need to change the logic, you should be doing it only in the component. Only if the component need more inputs or its output changes only then you should need to go out of the component.
      One general solution could be that the component would have some sort of method "do I need to be updated?".

  • @S-Lomar
    @S-Lomar 6 месяцев назад

    Welcome to my pages 🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰

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

    Thanks for this:
    activeId=(activeId+1) % arr.length

  • @user-ix7ui6py5p
    @user-ix7ui6py5p Месяц назад

    I would like to see more "best practices" videos!

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

    I would like to see more "best practices" videos!