#Why is my code looping constantly?

10 messages · Page 1 of 1 (latest)

sacred badge
#

Can you use a codeblock so we can better read and modify code?

#

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())

fiery prawn
#

Oh no problem I just found out, had to do with the frontend looping some call

#

👍

sacred badge
#

There was nothing in the code to suggest a loop

upbeat sorrel
#

@fiery prawn please don't delete your posts after getting an answer

fiery prawn
#

@upbeat sorrel ah okey wont do anymore