diff --git a/components/ExampleComponent.tsx b/components/ExampleComponent.tsx index b96af43..bf9df55 100644 --- a/components/ExampleComponent.tsx +++ b/components/ExampleComponent.tsx @@ -3,7 +3,7 @@ import React, { useEffect } from 'react'; const ExampleComponent = () => { useEffect(() => { console.log('ExampleComponent mounted'); - }, []); + }, [dog]); return (
@@ -12,4 +12,4 @@ const ExampleComponent = () => { ); } -export default ExampleComponent; \ No newline at end of file +export default ExampleComponent;