You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/AutoPersistInStore.md
+8-9Lines changed: 8 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,16 +5,16 @@ title: "The AutoPersistInStore Component"
5
5
6
6
# `<AutoPersistInStore>`
7
7
8
-
This [Enterprise Edition](https://react-admin-ee.marmelab.com)<imgclass="icon"src="./img/premium.svg"alt="React Admin Enterprise Edition icon" /> component prevents data loss in forms by automatically saving the form data in the store when users navigate away from the page. When users return to the page, it reapplies the saved data to the form.
8
+
This [Enterprise Edition](https://react-admin-ee.marmelab.com)<imgclass="icon"src="./img/premium.svg"alt="React Admin Enterprise Edition icon" /> component prevents data loss in forms by automatically saving the form data in the store when users update it. When users return to the page, it reapplies the saved data to the form.
The temporary form data is only saved when the user navigates away from the page, and it is removed when the user submits the form or closes the tab. Users can opt out of the prefilling by clicking the "Cancel" button in the notification.
15
+
The temporary form data is saved on change, and it is removed when the user submits the form or closes the tab. Users can opt out of the prefilling by clicking the "Cancel" button in the notification.
16
16
17
-
Saved data is not sent to the server. It is only persisted using the [store](./Store.md) and is removed when the user logs out.
17
+
Saved data is not sent to the server. It is only persisted using the [store](./Store.md) and is removed when the user logs out.
18
18
19
19
## Usage
20
20
@@ -35,15 +35,15 @@ const PostEdit = () => (
35
35
);
36
36
```
37
37
38
-
The component will automatically save the form data in the store on unmount and reapply it when the form is mounted again.
38
+
The component will automatically save the form data in the store on change and reapply it when the form is mounted again.
|`getStoreKey`| - |`function`| - | Function to use your own store key. |
47
47
|`notificationMessage`| - |`string`| "Applied previous unsaved changes" | Notification message to inform users that their previously saved changes have been applied. |
48
48
49
49
## `getStoreKey`
@@ -68,10 +68,9 @@ You can override this key by passing a custom function as the `getStoreKey` prop
68
68
/>
69
69
```
70
70
71
-
72
71
## `notificationMessage`
73
72
74
-
When `<AutoPersistInStore>` component applies the changes from the store to a form, react-admin informs users with a notification.
73
+
When `<AutoPersistInStore>` component applies the changes from the store to a form, react-admin informs users with a notification.
75
74
76
75
The default notification message is `ra-form-layout.auto_persist_in_store.applied_changes`, which is translated using the i18n provider (the default English translation is `Applied previous unsaved changes`).
Copy file name to clipboardExpand all lines: docs/Fields.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -615,9 +615,10 @@ const AuthorField = () => {
615
615
616
616
You can find components for react-admin in third-party repositories.
617
617
618
-
-[OoDeLally/react-admin-clipboard-list-field](https://github.com/OoDeLally/react-admin-clipboard-list-field): a quick and customizable copy-to-clipboard field.
619
618
-[MrHertal/react-admin-json-view](https://github.com/MrHertal/react-admin-json-view): JSON field and input for react-admin.
620
-
-[alexgschwend/react-admin-color-picker](https://github.com/alexgschwend/react-admin-color-picker): a color field
619
+
-[alexgschwend/react-admin-color-picker](https://github.com/alexgschwend/react-admin-color-picker): a color field.
620
+
-[huyanhvn/react-admin-clipboard-field](https://github.com/huyanhvn/react-admin-clipboard-field): a wrapper to TextField that copies field content to clipboard.
621
+
-[OoDeLally/react-admin-clipboard-list-field](https://github.com/OoDeLally/react-admin-clipboard-list-field): copy various formats of the same value to clipboard.
Copy file name to clipboardExpand all lines: examples/crm/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Atomic CRM
2
2
3
-
[Atomic CRM](https://marmelab.com/atomic-crm/) is a CRM template built with [react-admin](https://github.com/marmelab/react-admin) and Supabse. You can test it online at https://marmelab.com/react-admin-crm.
3
+
[Atomic CRM](https://marmelab.com/atomic-crm/) is a CRM template built with [react-admin](https://github.com/marmelab/react-admin) and Supabase. You can test it online at https://marmelab.com/react-admin-crm.
0 commit comments