Hello,
No it is not.
componentWillMount might be called multiple times (since react fiber) and it is not the best place to hold JavaScript's Call Stack specially.
The place best life cycle method to place calls is within componentDidMount as it is only called once in the life cycle of the component.
Refer to: medium.com/@baphemot/understanding-reactjs-compon…