In Mega Project , There is useEffect optimisation incomplete and Tiny mce setup is incomplete
Issue #1: Fix AllPosts useEffect optimization Problem: AllPosts page missing proper useEffect for API calls Solution: Added useEffect with empty dependency array to fetch posts only once Impact: Prevents unnecessary API calls and improves performance
useEffect(() => { appwriteService.getPosts([]).then((posts) => { if(posts) setPosts(posts.documents) }) }, [])
Issue #2: Fix TinyMCE with proper API key configuration Problem: TinyMCE not loading properly - showing hidden textarea instead of rich editor Root Cause: Missing or incorrect API key configuration Solution: Added valid TinyMCE API key to enable cloud features
// Fixed <Editor apiKey='your-working-api-key-here' // ← Added valid API key init={{ plugins: 'lists link table code', toolbar: 'undo redo | bold italic | bullist numlist | link | code' }} />
in Valid API Key , login in the tiny Mce website and get your api key
Source: hiteshchoudhary/chai-aur-react