From ffb6733eefc23e62c1fb94ce7fc442f87255ebd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valor=28=E5=8D=8E=E6=B4=9B=29?= <31121105+sdta25196@users.noreply.github.com> Date: Wed, 22 Mar 2023 09:39:05 +0800 Subject: [PATCH] fix docs link for useSyncExternalStore (#26452) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Update readme to new documentation links to [`React.useSyncExternalStore`](https://react.dev/reference/react/useSyncExternalStore ## How did you test this change? This is just a documentation change, so we don't need to test it Co-authored-by: 田源 --- packages/use-subscription/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/use-subscription/README.md b/packages/use-subscription/README.md index 48047e86df..ee40f3602c 100644 --- a/packages/use-subscription/README.md +++ b/packages/use-subscription/README.md @@ -2,7 +2,7 @@ React Hook for subscribing to external data sources. -**You may now migrate to [`use-sync-external-store`](https://www.npmjs.com/package/use-sync-external-store) directly instead, which has the same API as [`React.useSyncExternalStore`](https://reactjs.org/docs/hooks-reference.html#usesyncexternalstore). The `use-subscription` package is now a thin wrapper over `use-sync-external-store` and will not be updated further.** +**You may now migrate to [`use-sync-external-store`](https://www.npmjs.com/package/use-sync-external-store) directly instead, which has the same API as [`React.useSyncExternalStore`](https://react.dev/reference/react/useSyncExternalStore). The `use-subscription` package is now a thin wrapper over `use-sync-external-store` and will not be updated further.** # Installation