useNavigatehistory.back. But I cant refresh using location.reload because the window is a dialog so reloading is going to close the dialog. And the other options I don't really know what I can do.Navigate function by using the Navigate component and then taking the function from the parameter passed in the href