Hacker News new | ask | show | jobs
by dgwight 651 days ago
Me too. The options api enforced grouping and you could lint the ordering of the lifecycle methods, methods, computed, data etc. Thjs made it very easy to know where to find something inside a component
2 comments

Grouping is good until you have a UI component that needs to do 3 different things. It will be a mess because everything is mixed together. See official example: https://vuejs.org/guide/extras/composition-api-faq.html . This has been tremendously useful for developing large components.

If you haven't found a need for this, great for you. Options APIs will also continue to be available for the foreseeable future. But that doesn't mean it is better in any way.

That's why I still use it, it's so quick to find things when you open a component.

The tutorial and reasoning about the composition api make sense ... but I never feel I need it in my own apps.