react-admin
react-admin copied to clipboard
Accept a `To` from `react-router` in `useRedirect`
Problem
Sometimes, you’d like to pass a state when redirecting. However the redirect only accept a string.
Solution
Change the redirect and RedirectToFunction functions signature to accept a To from react-router
Todo
- [?] Accept the right props
- [x] Add a story
- [ ] Document it