### What?  ### Why? `user.id` was being used as a dependency is callbacks and when the user was logged out due to inactivity the above error would throw. ### How? Added optional chaining to the dependency.