I'm trying to destruct an object that can be null at a moment. For example with the following :
const { dolphin } = this.props.route.params;
I want dolphin to return null if route or params is null.
But whatever i try, i always got the exception "Cannot read property 'dolphin' of undefined.
Can anyone as a tip for this please ? Thanks