Skip to content

Commit 466aeb1

Browse files
djhifzaninotto
andauthored
Apply suggestions from code review
Co-authored-by: Francois Zaninotto <[email protected]>
1 parent 47cdf92 commit 466aeb1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/DataProviders.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -887,13 +887,13 @@ export default App;
887887

888888
## Offline Support
889889

890-
React Query supports offline/local-first applications. To enable it in your React Admin application, install the required React Query packages:
890+
React-admin supports offline/local-first applications. To enable this feature, install the following react-query packages:
891891

892892
```sh
893893
yarn add @tanstack/react-query-persist-client @tanstack/query-sync-storage-persister
894894
```
895895

896-
Then, register default functions for React Admin mutations on the `QueryClient` to enable resumable mutations (mutations triggered while offline). React Admin provides the `addOfflineSupportToQueryClient` function for this:
896+
Then, register default functions for react-admin mutations on the `QueryClient` to enable resumable mutations (mutations triggered while offline). React-admin provides the `addOfflineSupportToQueryClient` function for this:
897897

898898
```ts
899899
// in src/queryClient.ts

docs/Edit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ The default `onError` function is:
493493

494494
## `offline`
495495

496-
It's possible that a `<Edit>` will have no record to display because of connectivity issues. In that case, `<Edit>` will display a message indicating data couldn't be fetched.
496+
It's possible that an `<Edit>` will have no record to display because of connectivity issues. In that case, `<Edit>` will display a message indicating data couldn't be fetched.
497497

498498
You can customize this message via react-admin's [translation system](./Translation.md), by setting a custom translation for the `ra.notification.offline` key.
499499

0 commit comments

Comments
 (0)