That fetch is going to happen 2x at the start. The first time when todos is [] and then it will happen again when it's the result of the fetch as the useEffect deps will have changed. Then actually doesn't it just keep going because the object is different in todos?
I admire you on the fact that you are still learning but you still want to each others from what you have learned so far. That is a winning attitude right there. I wanted to help but LUKE already did.
That fetch is going to happen 2x at the start. The first time when todos is
[]
and then it will happen again when it's the result of the fetch as theuseEffect
deps will have changed. Then actually doesn't it just keep going because the object is different in todos?I am still learning so don't know much about in detail for now
I admire you on the fact that you are still learning but you still want to each others from what you have learned so far. That is a winning attitude right there. I wanted to help but LUKE already did.
Thanks for sharing.
Thank you