Rocon Website

useHistory

useHistory(): History;

The useHistory hook returns the history object passed to or generated by RoconRoot. It causes a rerendering only when the returned history object changes.

Note: do not use useHistory for the purpose of navigation (history.push)! Use useNavigate instead.