C:\Users\RAYNARD\web-cloud\app\user-dashboard\lokasi-posyandu\[id]\PosyanduDetailClient.tsx 47:9 error Error: Cannot access variable before it is declared `fetchReviews` is accessed before it is declared, which prevents the earlier access from updating when this value changes over time. C:\Users\RAYNARD\web-cloud\app\user-dashboard\lokasi-posyandu\[id]\PosyanduDetailClient.tsx:47:9 45 | 46 | useEffect(() => { > 47 | fetchReviews() | ^^^^^^^^^^^^ `fetchReviews` accessed before it is declared 48 | }, [data.id]) 49 | 50 | async function fetchReviews() { C:\Users\RAYNARD\web-cloud\app\user-dashboard\lokasi-posyandu\[id]\PosyanduDetailClient.tsx:50:5 48 | }, [data.id]) 49 | > 50 | async function fetchReviews() { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > 51 | setIsLoadingReviews(true) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > 52 | const { data: reviewData, error } = await supabase ΓǪ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > 64 | setIsLoadingReviews(false) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > 65 | } | ^^^^^^ `fetchReviews` is declared here 66 | 67 | async function handleSubmit(e: React.FormEvent) { 68 | e.preventDefault() react-hooks/immutability 48:8 warning React Hook useEffect has a missing dependency: 'fetchReviews'. Either include it or remove the dependency array react-hooks/exhaustive-deps 62:38 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 140:51 error Unexpected any. Specify a different type @typescript-eslint/no-explicit-any 198:87 error `"` can be escaped with `"`, `“`, `"`, `”` react/no-unescaped-entities 198:101 error `"` can be escaped with `"`, `“`, `"`, `”` react/no-unescaped-entities C:\Users\RAYNARD\web-cloud\app\user-dashboard\lokasi-posyandu\[id]\page.tsx 5:21 warning 'Building2' is defined but never used @typescript-eslint/no-unused-vars 5:32 warning 'MapPin' is defined but never used @typescript-eslint/no-unused-vars 5:40 warning 'Phone' is defined but never used @typescript-eslint/no-unused-vars 5:47 warning 'User' is defined but never used @typescript-eslint/no-unused-vars 5:53 warning 'ExternalLink' is defined but never used @typescript-eslint/no-unused-vars 5:74 warning 'MapIcon' is defined but never used @typescript-eslint/no-unused-vars C:\Users\RAYNARD\web-cloud\app\user-dashboard\lokasi-posyandu\page.tsx 5:32 warning 'Search' is defined but never used @typescript-eslint/no-unused-vars Γ£û 13 problems (5 errors, 8 warnings)