This is a minimalistic scenario where the React compiler bails out, so unnecessary useEffect callback invocations happen.
While an optional chaining call (client?.method()) tips the scale, ALONE is not enough to trigger the bug. The bug
requires a combination of factors, mostly a try/catch pattern.
To reproduce, run npm run dev and open localhost:3000. Check the console logs in the browser. You will see that for
the MinimalFailingCase unnecessary useEffect callback invocations will be logged.