2 questions from the last 7 days
-3
votes
0
answers
110
views
Why do useEffect and an early return affect child re-renders when using react hook form in React? [closed]
I have encountered a weird situation and I am pretty sure there is bug either in react-hook-form(7), React (19) or nextjs (16). Below details:
"use client";
import React, { useState, ...
-3
votes
0
answers
86
views
Why does useEffect placement relative to an “unreachable” early return change child component re-render behavior? [duplicate]
Nextjs 16, React 19.2, React Hook Form 7.6
I have encountered a very weird behavior of useEffect and unreachable early return. See here:
"use client";
import React, { useState, useEffect } ...