I have a React component in which i'm making a redirect
return <Redirect to={{
pathname: '/questions',
state: { open: true }
}}/>;
I need to access this state in the questions component, and i'm trying so with this.state.location.open which returns undefined. Am i missing some import statement, or am i just completly wrong?