gothinkster / react-redux-realworld-example-app

Exemplary real world application built with React + Redux
https://react-redux.realworld.io
MIT License
5.55k stars 2.5k forks source link

With componentWillMount deprecated where to retrieve token #114

Closed danielkarlsson closed 5 years ago

danielkarlsson commented 5 years ago

In the App component the token is retrieved from localstorage in componentWillMount, when componentWillMount will be deprecated where should that be moved to?

manishsaraan commented 5 years ago

@danielkarlsson its better to put it in componentDidMount or constructor itself.