We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 56b8f0e + 77c8db9 commit 8b6e504Copy full SHA for 8b6e504
packages/ra-core/src/routing/useRedirect.ts
@@ -30,6 +30,8 @@ export type RedirectionSideEffect = CreatePathType | false | RedirectToFunction;
30
* redirect(false);
31
* // redirect to the result of a function
32
* redirect((resource, id, data) => ...)
33
+ * // redirect to an absolute URL
34
+ * redirect('https://marmelab.com/react-admin');
35
*/
36
export const useRedirect = () => {
37
const navigate = useNavigate();
0 commit comments