Replies: 1 comment
-
|
Hi @jcsunran !! What you’re seeing isn’t a bug in useForm — it’s expected behavior: 👉 Because React re-renders on any state change, you’ll see console.log("render..") twice. Ways to handle it: Treat it as normal React behavior (it doesn’t hurt performance in real apps). So: the double render is expected in v7.56+ and isn’t something you should try to avoid. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
useForm caused page render twice, seems isReady triggered the render, how to avoid it?
example:
function App() { useForm(); console.log("render.."); return <div>test</div> }the log is displayed twice.
this issues is exist from version 7.56.X.
Beta Was this translation helpful? Give feedback.
All reactions