From e7ac8a17b0b9db6eb1c2aeef7c260aaf6e2bcfc0 Mon Sep 17 00:00:00 2001 From: React-Admin CI Date: Mon, 7 Sep 2026 15:36:14 +0000 Subject: [PATCH] [Doc] Update RA Core EE documentation --- docs_headless/src/content/docs/AutoSaveBase.md | 2 +- docs_headless/src/content/docs/useAutoSave.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs_headless/src/content/docs/AutoSaveBase.md b/docs_headless/src/content/docs/AutoSaveBase.md index 833585df62c..8b6932f831f 100644 --- a/docs_headless/src/content/docs/AutoSaveBase.md +++ b/docs_headless/src/content/docs/AutoSaveBase.md @@ -60,7 +60,7 @@ The app will save the current form values after 3 seconds of inactivity. - You must set the `
` prop to `{ keepDirtyValues: true }`. If you forget that prop, any change entered by the end user after the autosave but before its acknowledgement by the server will be lost. - In an `` page, you must set [`mutationMode`](https://marmelab.com/ra-core/editbase/#mutationmode) to `pessimistic` or `optimistic` (`` doesn't work with the default `mutationMode="undoable"`). - You can't use `` with this component. `` implements its own similar mechanism, and it's enabled by default. You can disable it with the [`disableWarnWhenUnsavedChanges` prop](#disablewarnwhenunsavedchanges). -- It requires that you use a Data Router. This is the default for react-admin apps, but if you're using a custom router, you may need to adjust your configuration. Check the react-router documentation about [Using a Data Router with react-router v6](https://reactrouter.com/6.22.3/routers/picking-a-router) or [Using a Data Router with react-router v7](https://reactrouter.com/7.2.0/start/framework/custom). +- It requires a router that supports navigation blocking. This is the case with the default router provided by react-admin. If you set up your own react-router router, it must be a [Data Router](https://reactrouter.com/6.22.3/routers/picking-a-router). Other `routerProvider` implementations expose their support through `useCanBlock()`. ## Props diff --git a/docs_headless/src/content/docs/useAutoSave.md b/docs_headless/src/content/docs/useAutoSave.md index 75435725dfa..fbcb5012ac5 100644 --- a/docs_headless/src/content/docs/useAutoSave.md +++ b/docs_headless/src/content/docs/useAutoSave.md @@ -13,7 +13,7 @@ Note that you **must** add the `resetOptions` prop with `{ keepDirtyValues: true **Note**: `useAutoSave` is not compatible with the default `warnWhenUnsavedChanges` prop of the react-admin form components. However, it implements its own similar mechanism which is enabled by default. You can disable it with the [`disableWarnWhenUnsavedChanges` prop](#disablewarnwhenunsavedchanges). -**Note**: Due to limitations in react-router, this equivalent of `warnWhenUnsavedChanges` only works if you use the default router provided by react-admin, or if you use a [Data Router with react-router v6](https://reactrouter.com/6.22.3/routers/picking-a-router) or [with react-router v7](https://reactrouter.com/7.2.0/start/framework/custom). +**Note**: This equivalent of `warnWhenUnsavedChanges` needs a router that supports navigation blocking. It works with the default router provided by react-admin. If you set up your own react-router router, it must be a [Data Router](https://reactrouter.com/6.22.3/routers/picking-a-router). If not, you'll need to use the `disableWarnWhenUnsavedChanges` prop. ```tsx