Skip to content

Commit 4c71375

Browse files
committed
Fix documentation
1 parent 02a957a commit 4c71375

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

docs/DataProviders.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ import { dataProvider } from './dataProvider';
903903

904904
export const queryClient = new QueryClient();
905905

906-
addOfflineSupportToQueryClient({
906+
const queryClientWithOfflineSupport = addOfflineSupportToQueryClient({
907907
queryClient,
908908
dataProvider,
909909
resources: ['posts', 'comments'],
@@ -996,9 +996,9 @@ import { PersistQueryClientProvider } from '@tanstack/react-query-persist-client
996996
import { createSyncStoragePersister } from '@tanstack/query-sync-storage-persister';
997997
import { dataProvider } from './dataProvider';
998998

999-
export const queryClient = new QueryClient();
999+
const baseQueryClient = new QueryClient();
10001000

1001-
addOfflineSupportToQueryClient({
1001+
export const queryClient = addOfflineSupportToQueryClient({
10021002
queryClient,
10031003
dataProvider,
10041004
resources: ['posts', 'comments'],

docs/ReferenceArrayInput.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ const filters = [
219219

220220
## `offline`
221221

222-
`<ReferenceArrayInput>` can display a custom message when data cannot be fetched because of connectivity issues.
222+
`<ReferenceArrayInput>` displays a message when data cannot be fetched because of connectivity issues.
223223
You can customize this message via react-admin's [translation system](./Translation.md), by setting a custom translation for the `ra.notification.offline` key.
224224

225225
```tsx

docs/ReferenceField.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ You can also use a custom `link` function to get a custom path for the children.
145145

146146
## `offline`
147147

148-
`<ReferenceField>` can display a custom message when data cannot be fetched because of connectivity issues.
148+
`<ReferenceField>` displays a message when data cannot be fetched because of connectivity issues.
149149
You can customize this message via react-admin's [translation system](./Translation.md), by setting a custom translation for the `ra.notification.offline` key.
150150

151151
```tsx

docs/ReferenceInput.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ const filters = [
193193

194194
## `offline`
195195

196-
`<ReferenceInput>` can display a custom message when data cannot be fetched because of connectivity issues.
196+
`<ReferenceInput>` displays a message when data cannot be fetched because of connectivity issues.
197197
You can customize this message via react-admin's [translation system](./Translation.md), by setting a custom translation for the `ra.notification.offline` key.
198198

199199
```tsx

docs/ReferenceManyCount.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ When used in conjunction to the `filter` prop, the link will point to the list v
124124

125125
## `offline`
126126

127-
`<ReferenceManyCount>` can display a custom message when data cannot be fetched because of connectivity issues.
127+
`<ReferenceManyCount>` displays a message when data cannot be fetched because of connectivity issues.
128128
You can customize this message via react-admin's [translation system](./Translation.md), by setting a custom translation for the `ra.notification.offline` key.
129129

130130
```tsx

docs/ReferenceOneField.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ You can also set the `link` prop to a string, which will be used as the link typ
154154

155155
## `offline`
156156

157-
`<ReferenceOneField>` can display a custom message when data cannot be fetched because of connectivity issues.
157+
`<ReferenceOneField>` displays a message when data cannot be fetched because of connectivity issues.
158158
You can customize this message via react-admin's [translation system](./Translation.md), by setting a custom translation for the `ra.notification.offline` key.
159159

160160
```tsx

0 commit comments

Comments
 (0)