Closed armynante closed 1 year ago
@armynante I've just checked with v5.1.0
(which has just been released) and I can no longer reproduce this error. There were some changes included in this release that may have accounted for the additional renders.
I'm going to close, but please feel free to reopen if you are still seeing this problem.
I'm using the useAuthState hook and I'm seeing there are multiple calls each time the page is loaded.
Is this expected behavior? I'm new to nextJS/React and not sure if the useEffect hook is being triggered due to a bug in my code or unexpected behavior from the authState hook.
I expected the useEffect hook to be only triggered when the
authUser
object changes. Is it just calling back to the firebase API on each page refresh? I thought it was only listening for auth state changes?Thanks in advance, and please excuse my ignorance if this is expected behavior!
console trace
network calls to google api