I am passing table row data data object as a state in a route params i.e using useHistory react-router-dom.While receiving in the next screen as a props, for the first time i am getting it and immediately it becomes undefined.So can anyone please tell me why is this happening?
const onClickEntityName = (values: any) => {
navigate.push({ pathname: 'url here', state: values });
};