Created
January 17, 2021 11:54
-
-
Save AllanGraves/b3f5fda604670760ebae18ffda7e514e to your computer and use it in GitHub Desktop.
adding a cleanup (componentWillUnmount) log message.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
useEffect(() => { | |
console.log( | |
`Location:IN MOUNT: | |
LocationID: ${locationID} + StoryID: ${storyID} + curLocation: ${curLocation}`, | |
); | |
return () => { | |
console.log('Location: CleaningUP'); | |
}; | |
}, []); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment