Closed shaibt closed 5 years ago
Hi, Great tutorial and example code! Definitely most comprehensive from all the react/firebase stuff I've seen. Just a small comment, wouldn't be cleaner to remove the onAuthStateChanged listeners in the two HOCs in a componentWillUnmount method?
onAuthStateChanged
componentWillUnmount
Good point. I should add those to the tutorial!
Fixed :)
Hi, Great tutorial and example code! Definitely most comprehensive from all the react/firebase stuff I've seen. Just a small comment, wouldn't be cleaner to remove the
onAuthStateChanged
listeners in the two HOCs in acomponentWillUnmount
method?