watch's first argument can be different types of reactive "sources": it can be a ref (including computed refs), a reactive object, a getter function, or an array of multiple sources
Great stuff man, how will you recommend I protect again users directly modifying the localStorage object though, any suggestions on perhaps any other alternative persistence options to use that's more secure ?
It would be great to see examples of persistent storage with Nuxt3, without hydration issues. I've made use of the VueUse composable, but even with the example solution using hydration function, I get hydration mismatch in the console. Not sure if to worry about it, but it would be better not to see the issue. Any ideas? Thanks
Nice explanation. On the other hand, I can't understand why not directly using localstorage in your standard functions in this situation. I was hoping to persist data under the rags since I dont want a user to inspect or possibly change the data from local.
my favorite way would be to persist with sqlite3 - you have an idea what would be the best way to implement? or do i have to do something customized for that with knex or sequelize?
First off, I love these videos. They are very informative and incredibly helpful. The presenter though is using a monotone, laundry listing speech pattern that takes away from the content at times.
@@LearnVue Yea man! I love your videos and the content in this one specifically is great since most of the pinia videos are for TS. If you could make one or have made one for pinia using the options api that would be hype af.
I have so much problem with Nuxt 3 and pinia persisted state. Anyone have some git or repo I can check out. I don't have errors but my state is still not saved. --> Solution in comments
I have two questions: 1. If we use the first way, do we register a new watcher whenever we call useUserStore? 2. How to reset states when user log out? Thanks for making awesome content!
I appreciate you keeping your content short and sweet, but you could work on varying the inflection of your voice to get your ideas across better. I would describe your manner of speaking as droning or monotone. Every sentence sounds the same, especially the last word of every sentence. And you sound bored. Work on that and your channel will be better.
what a timing. man! your timing is always on point on me.
For me too, those videos are literally JIT.
@@caiovinicius7871 lol nice one 😂
Thanks. Nice showing the various ways.
Nice stuff. I'm glad it's so simple and straightforward.
You sir have made my day. been stuck on this for hours!
Short and clear explanation. Thanks!
You channel is like a gem. Thanks for really cool vids
thank you for your straight to the point approach
Great video! It saves me for my course project, thanks for sharing!
glad it helped!
Your videos are very helpful! Is there any possibility on having a tutorial for SSR with Vue 3?
++
nice video and great explanation. thank you.
Really useful, thanks 🔥
3:17 Why do we need an arrow function here?
watch's first argument can be different types of reactive "sources": it can be a ref (including computed refs), a reactive object, a getter function, or an array of multiple sources
Vue use is my favourite version, it is so easy to use
Great stuff man, how will you recommend I protect again users directly modifying the localStorage object though, any suggestions on perhaps any other alternative persistence options to use that's more secure ?
Short & concise
thanks a lot!
useLocalStorage is my favorite one
great video, GOD bless you!!
It would be great to see examples of persistent storage with Nuxt3, without hydration issues. I've made use of the VueUse composable, but even with the example solution using hydration function, I get hydration mismatch in the console. Not sure if to worry about it, but it would be better not to see the issue. Any ideas? Thanks
I use Nuxt3 too, but I have a different issue, on reload, everything it resets, does that also happen to you?
@@eduardocarrilloalbor9459 This happens to me as well
Thank you, that was way clearer then the pinia docs lol
Nice explanation. On the other hand, I can't understand why not directly using localstorage in your standard functions in this situation. I was hoping to persist data under the rags since I dont want a user to inspect or possibly change the data from local.
thanks that was agood quick reference
nice!! piniaPluginPersistedstate good choice
With the VueUse, do you really need to wrap it in a ref? According to their docs the function already returns a ref
How on earth does Pinia not persist by default? Sometimes I dont understand what devs are doing.
Why would you want to persist everything?
Great video!
thank you bru!!
my favorite way would be to persist with sqlite3 - you have an idea what would be the best way to implement? or do i have to do something customized for that with knex or sequelize?
As a React dev, I'm getting jelly
Mantap jiwa raga bang...!!! Jozzz
asik asik
How do I persist a Pinia Store to SQLite? Ideally, I'd like to be able to query the Pinia store data within the SQLite database.
Great video as always. I noticed in your videos that you don't use Typescript, is there any reason for not using it?
maybe beacuse javascript is more common than typescript
First off, I love these videos. They are very informative and incredibly helpful. The presenter though is using a monotone, laundry listing speech pattern that takes away from the content at times.
thanks for the tip - im working on it!
@@LearnVue Yea man! I love your videos and the content in this one specifically is great since most of the pinia videos are for TS. If you could make one or have made one for pinia using the options api that would be hype af.
Is localstorage option work with TS? Actually I tried all options and it doesn't work i any way. Can someone help me please?
amazing.
hey, i need a vue promise tracker, does any body know some thing or tool to i do for all over the project? thanks.
Hey, can you make a video explaining why Pinia is supposedly better than vuex?
I have so much problem with Nuxt 3 and pinia persisted state. Anyone have some git or repo I can check out. I don't have errors but my state is still not saved. --> Solution in comments
Hi @Rootster , I am having the same issue, could you make it work?
I have two questions:
1. If we use the first way, do we register a new watcher whenever we call useUserStore?
2. How to reset states when user log out?
Thanks for making awesome content!
I appreciate you keeping your content short and sweet, but you could work on varying the inflection of your voice to get your ideas across better. I would describe your manner of speaking as droning or monotone. Every sentence sounds the same, especially the last word of every sentence. And you sound bored. Work on that and your channel will be better.
Well, IMO useLocalStorage gives you the cleanest and most minimalistic approach, also, @vueuse provides a ton of other good utils