I have this issue where the first time my component is rendered, anything run inside a for loop (or array.map function) is completely ignored. It runs as expected the s