Skip to content

Commit cfac0d4

Browse files
authored
Merge pull request #9531 from marmelab/fix-doc-Show-queryOptions
[Doc] Fix typo in `<Show queryOptions>` doc
2 parents 4a733cc + 3d8bfd7 commit cfac0d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/Show.md

+2
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ You can also use the `queryOptions` prop to override the default error side effe
300300

301301
You can override this behavior and pass custom side effects by providing a custom `queryOptions` prop:
302302

303+
{% raw %}
303304
```jsx
304305
import * as React from 'react';
305306
import { useNotify, useRefresh, useRedirect, Show, SimpleShowLayout } from 'react-admin';
@@ -324,6 +325,7 @@ const PostShow = () => {
324325
);
325326
}
326327
```
328+
{% endraw %}
327329

328330
The `onError` function receives the error from the dataProvider call (`dataProvider.getOne()`), which is a JavaScript Error object (see [the dataProvider documentation for details](./DataProviderWriting.md#error-format)).
329331

0 commit comments

Comments
 (0)