Pinia Crash Course #6 - Actions

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

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

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

    As long-time user of Vuex, this is a godsend! I've been dreading making the transition from Vuex to Pinia, but my anxieties were for naught. This is sooooo much better. Thanks for the great tutorials.

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

    For toggleFav action, I think you can simply pass in the task object directly instead of finding the task with its id.

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

    Hello, what would be the best practice in this case ?
    Should I create a custom event in my component file and an event listener in my App.vue file that would trigger the deletion of tasks and the isFav toggle ? Or should I directly use the setup() and the taskStore declaration in the TaskDetails.vue component file and work from there ?

  • @EduardoCuadra-ke2vm
    @EduardoCuadra-ke2vm 6 месяцев назад +1

    great course so simple, but so usefull.

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

      Glad it was helpful! :) thanks

  • @angular-developer-e1t
    @angular-developer-e1t Месяц назад

    cool job!

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

    great stuff! just wondering how the button on form like this would trigger form submit action?

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

      realise this might be a bit late, but the default type of a button is a submit button. this means that when a button is nested inside a form tag, pressing the button will submit the form by default

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

    Is it ok to validation inside actions? Or should we always delegate it to components?

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

    Just use class Date and method now instead of Math random

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

    Better then redux

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

    it would be better if script setup is used

  • @paingsoethu-gq9sv
    @paingsoethu-gq9sv 2 года назад +1

    Hi Sir , Vue Life Cycle Hood explain video please.

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

    You could also use script setup instead of annoying setup function, just sayin' :)

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

    Why are you replacing instead of modifying tasks? You replaced this.tasks with a filtered array.

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

    😍😍

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

    Why my comments are getting removed within 20 secs I'm just trying to tell a better thing!?

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

    mhantabss

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