Skip to main content
๐Ÿ‘€ Interested in the latest enterprise backend features of refine? ๐Ÿ‘‰ Join now and get early access!
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.

Basic Usageโ€‹

import { useBack } from "@refinedev/core";

const MyComponent = () => {
const back = useBack();

return <Button onClick={() => back()}>Go Back</Button>;
};
Last updated on Jul 19, 2023 by Yฤฑldฤฑray รœnlรผ