Arquisoft / lomap_en2b

LoMap Software architecture group en2b course 2022_23
https://arquisoft.github.io/lomap_en2b
1 stars 1 forks source link

Fix useEffect loops and double loading #123

Closed andrrsin closed 1 year ago

jjgancfer commented 1 year ago

I think I found the cause. When using the useEffect hook with dependencies, React executes the function when any dependency changes. As we had assigned to it many dependencies, the function was executed every time a single one changed. The refactor in #130 incorporated a major rework of the landmark retrieval, so now it should be fixed.