#Why is my code looping constantly?
10 messages · Page 1 of 1 (latest)
btw this pattern of mutating a varialbe in the then callback is unneccesary. you can just return response.json() in the callback instead and the awaited value will amount to that
Which in turn means you can just return fetch(...).then(r => r.json())
That was my next suggestion :D
There was nothing in the code to suggest a loop
@fiery prawn please don't delete your posts after getting an answer
@upbeat sorrel ah okey wont do anymore