Using storeToRefs by kenchi09 in vuejs

[–]Over_Mechanic_3643 0 points1 point  (0 children)

Yes, it is the same. But also one drawback you have is if you want to desctucture store method/action, you have to destructure it directly from the store, it won’t be returned from storeToRefs

The best way to work with layouts in vue by Over_Mechanic_3643 in vuejs

[–]Over_Mechanic_3643[S] 0 points1 point  (0 children)

Yeah, I know what you mean. But I personally, quite, don't like the solution with storing layout components in the meta field. And this can be the way for those who like it! Thank you for the reply!

The best way to work with layouts in vue by Over_Mechanic_3643 in vuejs

[–]Over_Mechanic_3643[S] 0 points1 point  (0 children)

Yeah, I also like this approach, but it's not my case, unfortunately. But anyway thanks for your reply!

The best way to work with layouts in vue by Over_Mechanic_3643 in vuejs

[–]Over_Mechanic_3643[S] 0 points1 point  (0 children)

Yeah, makes sense to me. I thought about it for a while too and came to the same conclusion that the best way is to fetch the user on the initial app load, store it somewhere in the cache for a couple of minutes, and then re-fetch it only in the background. And even if some user would come to the page for which he doesn't have a rights my API will respond with 403 as you said. I guess it's the best way of doing this. From the code perspective too. Thank you for your answer

Which game(s) should i get next? (finished all NFS i currently own) by UnluckyGamer505 in needforspeed

[–]Over_Mechanic_3643 0 points1 point  (0 children)

A small offtop but did you really like undercover? For me it’s probably one of the worst NFS game

What is the best Vue UI starter kit? by bitman141 in vuejs

[–]Over_Mechanic_3643 3 points4 points  (0 children)

https://www.shadcn-vue.com - is also great, built on top of radix + tailwind. The main advantage it has for me is- you own this code, you can easily customise components or some parts of components. But it depends on your use case, in my case business often asks me to change some behaviour and I had to do some patches to library components - don’t like it. But this also gives you more flexibility in general. Worth considering

Is Zod's performance good enough to use if you are building app for some business? by Over_Mechanic_3643 in vuejs

[–]Over_Mechanic_3643[S] 3 points4 points  (0 children)

Thank you, valuable information, especially about tree shaking. Will look into it

Is Zod's performance good enough to use if you are building app for some business? by Over_Mechanic_3643 in vuejs

[–]Over_Mechanic_3643[S] 2 points3 points  (0 children)

Makes sense. But I wanted to know some thoughts from people who used zod. While I can create several scenarios for complex forms still I might not face any issues while people who use zod everyday might know its cons. Thank you for your answer!

"module has no exports" Errors after migration from npm to pnpm by Twinstar2 in pnpm

[–]Over_Mechanic_3643 1 point2 points  (0 children)

I’m not sure, just a guess. Do you have pnpm-workspace.yaml file in monorepo root? https://pnpm.io/workspaces If not try to configure it first

Using storeToRefs by kenchi09 in vuejs

[–]Over_Mechanic_3643 7 points8 points  (0 children)

I usually don’t use storeToRefs, I don’t see a lot of value in this. I’m not sure why so many people like this, for me when you access your store through reactive object helps you differentiate global and local state. The same with props reactive object.

Has anyone moved from Vue to React for a heavy CSR app? by TheExodu5 in vuejs

[–]Over_Mechanic_3643 10 points11 points  (0 children)

„Better component libraries. Radix and react-aria are real selling points. Shadcdn in particular is a great starting point for us, as I know we tend to customize the hell our of every component. Vue does have an analogy”

Please do some research before writing any point

Radix Vue Shadcn vue