From 06953ccd18b0b962ce56f3b96ff9ab79beecd19c Mon Sep 17 00:00:00 2001 From: Matt Brophy Date: Tue, 23 Apr 2024 11:10:30 -0400 Subject: [PATCH] Update docs --- CHANGELOG.md | 6 ++++-- docs/routers/create-browser-router.md | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d3c549461..1fb1d76666 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -184,13 +184,15 @@ Date: YYYY-MM-DD ## v6.23.0 -Date: 2024-04-03 +Date: 2024-04-23 ### What's Changed #### Data Strategy (unstable) -The new `unstable_dataStrategy` API is a low-level API designed for advanced use-cases where you need to take control over the data strategy for your `loader`/`action` functions. The default implementation is today's behavior, to fetch all loaders in parallel, but this option allows users to implement more advanced data flows including Remix ["Single Fetch"](https://remix.run/docs/en/main/guides/single-fetch), user-land middleware/context APIs, automatic loader caching, and more. Please see the [docs](https://reactrouter.com/en/main/routers/create-browser-router#unstable_datastrategy) for more information. +The new `unstable_dataStrategy` API is a low-level API designed for advanced use-cases where you need to take control over the data strategy for your `loader`/`action` functions. The default implementation is today's behavior, to fetch all loaders in parallel, but this option allows users to implement more advanced data flows including Remix ["Single Fetch"](https://remix.run/docs/guides/single-fetch), user-land middleware/context APIs, automatic loader caching, and more. Please see the [docs](https://reactrouter.com/routers/create-browser-router#unstable_datastrategy) for more information. + +**Note:** This is a low-level API intended for advanced use-cases. This overrides React Router's internal handling of `loader`/`action` execution, and if done incorrectly will break your app code. Please use with caution and perform the appropriate testing. #### Skip Action Error Revalidation (unstable) diff --git a/docs/routers/create-browser-router.md b/docs/routers/create-browser-router.md index 7a1f871964..c9e734ed58 100644 --- a/docs/routers/create-browser-router.md +++ b/docs/routers/create-browser-router.md @@ -184,7 +184,7 @@ const router = createBrowserRouter( ## `unstable_dataStrategy` -This is a low-level API intended for advanced use-cases. This overrides Remix's internal handling of `loader`/`action` execution, and if done incorrectly will break your app code. Please use with caution and perform the appropriate testing. +This is a low-level API intended for advanced use-cases. This overrides React Router's internal handling of `loader`/`action` execution, and if done incorrectly will break your app code. Please use with caution and perform the appropriate testing. This API is marked "unstable" so it is subject to breaking API changes in minor releases