Why does useState() run in an endless loop if the argument is an object or array?
I’m using the useState()
hook in Deno Fresh, which is based on Preact. In an island I have:
Why does useState() run in an endless loop if the argument is an object or array?
I’m using the useState()
hook in Deno Fresh, which is based on Preact. In an island I have: