DEV Community

Discussion on: Using Firebase with React Hooks

Collapse
 
stoddabr profile image
stoddabr

Hi Martini,

Ben declared unsubscribe as a function variable. firebase.auth().onAuthStateChanged(*) returns firebase.Unsubscribe which is a function. This is sparsely mentioned in the documentation.