I am having this error index.js:1 Warning: Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.
that is running non stop has if there is an infinite React rerendering recursion going on. Yet as my page is fairly simple, and as I don't use either useEffect nor useState, I don't grasp what's triggering this error. Anyone to explain this behavior?
xport function HomeScreen({ navigation }: any) { const dailyTasksElements = dailyTasksFakeData.map((task, index) => { return (<Pressable key={index} style={styles.dailyTask} onPress={() => navigation.navigate(task.route)}><Text>{task.description}</Text></Pressable> ) }) return (<><View style={styles.container}><View style={styles.header}><ProfileInformation /><Progression /></View><View style={styles.dailyTasks}>{dailyTasksElements}</View></View><NavBar /></> )}