Preventing console errors when calling useUser() when user isn't logged in?

I am also experiencing the same issue. Is this the expected behavior? I would like to hear the development team’s opinion on this.