From c758b6c58ad48b24b81f57e98ca8948ecaa539d0 Mon Sep 17 00:00:00 2001 From: Hocky Yudhiono Date: Wed, 25 Sep 2024 20:13:20 +0800 Subject: [PATCH] remove dependency --- renderer/pages/learn.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/renderer/pages/learn.tsx b/renderer/pages/learn.tsx index bb9d882..521662d 100644 --- a/renderer/pages/learn.tsx +++ b/renderer/pages/learn.tsx @@ -120,7 +120,7 @@ function Learn() { }, []); - const {speak, speaking, supported, printVoices, voices} = useSpeech(); // Use the useSpeech hook + const {speak, speaking, supported, voices} = useSpeech(); // Use the useSpeech hook // Function to get supported language codes const getSupportedLangCodes = useCallback(() => { @@ -142,10 +142,6 @@ function Learn() { }, [speak, supported, directInput, selectedVoice, lang]); - useEffect(() => { - printVoices(); - }, [printVoices]); - return (