paginated list return to different page after edit
when I am in a paginated list, i want to return to for exemple page 3 after an edit
syncWithLocationsyncWithLocationsyncWithLocationsyncWithLocationsyncWithLocationsyncWithLocationsyncWithLocationsyncWithLocationoptions={{ syncWithLocation: true }}<Refine /><Refine options={{ syncWithLocation: true }}> <Refine
options={{
syncWithLocation: true,
}}
>
{/* ... */}
</Refine>import { useParsed, useNavigation } from "@refinedev/core";
const MyEditComponent = () => {
const { params, pathname } = useParsed();
const { go } = useNavigation();
const handleSave = () => {
// ... your save logic
// Redirect back to the list with the same pagination and filters
go({
to: pathname.replace("/edit", ""), // or your list path
query: params,
});
};
// ...
};