4 ms·
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
by dgwight 2y 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
- conradfr 2y agoThat'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.
- rty32 2y agoGrouping 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 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.