Performance: Composable naming conventions (use prefix)
MEDIUM IMPACT
This affects code maintainability and load performance by enabling better tree-shaking and reducing unnecessary imports.
export function useData() { /* ... */ } export function useUser() { /* ... */ } export function useFetchData() { /* ... */ }
export function useData() { /* ... */ } export function useUser() { /* ... */ } export function fetchData() { /* ... */ }
| Pattern | Bundle Size Impact | Tree-shaking Effectiveness | Load Time | Verdict |
|---|---|---|---|---|
| No prefix or inconsistent naming | Higher | Poor | Slower | [X] Bad |
| Consistent 'use' prefix for composables | Lower | Good | Faster | [OK] Good |