Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not sure what they mean by "typed events: vue 3: no". It's possible, I did it today. Here's the doc:

- Typed component emits: https://vuejs.org/guide/typescript/composition-api.html#typi...

- Typing event handlers: https://vuejs.org/guide/typescript/composition-api.html#typi...



And the discussion of store for Vue neglected pinia which is de-facto the store.


Personally, after going all in with Pinia, I went back to no store. I just use refs and computeds exported from files. I have a dummy pinia store loading all of them to provide a basic devtools ui.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: