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.
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 ?
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
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.
For toggleFav action, I think you can simply pass in the task object directly instead of finding the task with its id.
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 ?
great course so simple, but so usefull.
Glad it was helpful! :) thanks
cool job!
great stuff! just wondering how the button on form like this would trigger form submit action?
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
Is it ok to validation inside actions? Or should we always delegate it to components?
Just use class Date and method now instead of Math random
That's clever👌🏼
Better then redux
it would be better if script setup is used
Hi Sir , Vue Life Cycle Hood explain video please.
You could also use script setup instead of annoying setup function, just sayin' :)
Why are you replacing instead of modifying tasks? You replaced this.tasks with a filtered array.
😍😍
Why my comments are getting removed within 20 secs I'm just trying to tell a better thing!?
mhantabss