###### tags: `rapyuta`
# Current flow of network calls to fetch and set map to store causing loop.
**connectMap.jsx/fetchMap** (triggers on side effects when mapstatus or mapsinsite changes)
calls
**actions/map/fetchAndSetMap** if API status is idle or successful
calls
**MapSource/getMap** and **MapSource/getMapElements** and **MapSource/getLayers** and sets status = successful map to redux store
**MapSource/getMap**
calls
**actions/map/fetchMap** which tries to fetch and set map and in case of error set error status to map