Files
xingrin/frontend/components/route-prefetch.tsx
yyhuni 6caf707072 refactor: replace Chinese comments with English in frontend components
- Replace all Chinese inline comments with English equivalents across 24 frontend component files
- Update JSDoc comments to use English for better code documentation
- Improve code readability and maintainability for international development team
- Standardize comment style across directories, endpoints, ip-addresses, subdomains, and websites components
- Ensure consistency with previous frontend refactoring efforts
2025-12-29 23:01:16 +08:00

14 lines
342 B
TypeScript

'use client'
import { useRoutePrefetch } from '@/hooks/use-route-prefetch'
/**
* Route prefetch component
* Automatically prefetches JS/CSS resources for commonly used pages after app startup
* This is an invisible component, only used to execute prefetch logic
*/
export function RoutePrefetch() {
useRoutePrefetch()
return null
}