From github.com
Bug: Repeated state setter callbacks when callback throws · Issue #26737 · facebook/react
1 1
It's a minor thing, but confusing: If you call a useState state setter and the callback throws, React calls the state setter callback twice more before allowing the error to propagate to the consol...
21h ago