Skip to content

Commit f4dcb08

Browse files
authored
Merge pull request marmelab#10642 from marmelab/fix-layout-error-documentation
[Doc] Fix `<Layout error>` documentation
2 parents 43bc724 + 1f5463c commit f4dcb08

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

docs/Layout.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,9 @@ Here is an example of a custom error component:
166166
import Button from '@mui/material/Button';
167167
import ErrorIcon from '@mui/icons-material/Report';
168168
import History from '@mui/icons-material/History';
169-
import { Title, useTranslate, useDefaultTitle, useResetErrorBoundaryOnLocationChange } from 'react-admin';
170-
171-
export const MyError = ({
172-
error,
173-
resetErrorBoundary,
174-
...rest
175-
}) => {
176-
useResetErrorBoundaryOnLocationChange(resetErrorBoundary);
169+
import { Title, useTranslate, useDefaultTitle } from 'react-admin';
177170

171+
export const MyError = ({ error, ...rest }) => {
178172
const translate = useTranslate();
179173
const defaultTitle = useDefaultTitle();
180174
return (

0 commit comments

Comments
 (0)