Refine AI
This is documentation for Refine 4.xx.xx, which is no longer actively maintained.
For up-to-date documentation, see the latest version (5.xx.xx).
Version: 4.xx.xx
useBack
useBack
is a hook that leverages the back
method of the routerProvider
to perform the "go back" operation in the history stack.
Usage
import { useBack } from "@refinedev/core";
const MyComponent = () => {
const back = useBack();
return <Button onClick={() => back()}>Go Back</Button>;
};
Was this helpful?