Live data from Hacker News

Vue 3.2

blog.vuejs.org

31–40 of 153 posts

Re: Vue 3.2

#31
post #29

I like vue, but the last time I used it with typescript it was pretty clunky. React has much better typescript support, as it type checks all props, even complex objects.

The typescript support has immensely improved in vue3. The entire vue3 codebase is even written in typescript.

Re: Vue 3.2

#32
post #29

I like vue, but the last time I used it with typescript it was pretty clunky. React has much better typescript support, as it type checks all props, even complex objects.

Which version of Vue do you mean by “the last time”?

Re: Vue 3.2

#33
The js-framework-benchmark used here is really hard to run. I'm not a javascript programmer, I'm always baffled that any of the command listed in the README page always end up in error. I even re-install a new version nodejs but can't make the benchmark run.

Re: Vue 3.2

#34

The js-framework-benchmark used here is really hard to run. I'm not a javascript programmer, I'm always baffled that any of the command listed in the README page always end up in error. I even re-install a new version nodejs but can't make the benchmark run.

Which errors?

Re: Vue 3.2

#36
post #29

I like vue, but the last time I used it with typescript it was pretty clunky. React has much better typescript support, as it type checks all props, even complex objects.

The typescript support has immensely improved in vue3. The entire vue3 codebase is even written in typescript.

I tried vue3 and all the associated stuff like vuex and the router last month. Vuex especially has extremely poor support even if it is written in TS. I believe the next version will have better support for TS. Just writing vue wasn't much of an issue but there's not enough support for it in the templates. I believe there's VSCode extensions that help

Re: Vue 3.2

#37
Anyone moved from React to Vue. I've been reading the Vue docs and I like some things about it but the compositional model seems a bit more confusing compared to React.

Also, I think I do prefer working with JSX versus using html templates. I prefer that close coupling of JS logic and JSX presentation.

The most appealing thing about Vue is that it seems to be more of a framework, maybe somewhere in the middle between base React/ReactDOM and Next.js.

Re: Vue 3.2

#38
post #4

I just started cobbling together a demo jquery app mess into a vue3 app yesterday, and lemme tell ya, the docs are great, and I even got from 0 to VueX in few hours today. I'm impressed. Great work Vue team. I'm normally hesitant to adopt a new version of a library when learning and expected to get bitten by a few more things but so far seems mature, stable, and well done. Edit: That said, I'm still personally not in…

I had much the same experience as you some 4 years ago. The exception was that I was heavily into Angular1 so Vue felt completely natural.

The one page vue file made a lot of sense to me off the bat, sort of implying that the component is a singular "encapsulated" entity, at least thats my own mental model. Turns out it was completely wrong but it worked.

Re: Vue 3.2

#39
I think my favourite thing about Vue 3 and the composition API is that VueX is essentially obsolete - you can manage your global state by calling real life functions.

This means instead of doing `dispatch("action")` you just call `action()`.

When using Typescript this is a godsend, as the action functions keep all of their type information.

Re: Vue 3.2

#40

Earlier quoted context omitted.

The typescript support has immensely improved in vue3. The entire vue3 codebase is even written in typescript.

I tried vue3 and all the associated stuff like vuex and the router last month. Vuex especially has extremely poor support even if it is written in TS. I believe the next version will have better support for TS. Just writing vue wasn't much of an issue but there's not enough support for it in the templates. I believe there's VSCode extensions that help

Vuex with proper TS support would be really key as the domain model is often in the store. Now that the Vuex release has been behind Vue3 for a while is there any alternative to Vuex?
Post reply on HN