Skip to content

Commit 5354c57

Browse files
authored
core: use React useSyncExternalStore instead of shim (#8034)
1 parent a6ab9ab commit 5354c57

3 files changed

Lines changed: 2 additions & 16 deletions

File tree

packages/core/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@
5757
"normalize.css": "^8.0.1",
5858
"react-popper": "^2.3.0",
5959
"react-transition-group": "^4.4.5",
60-
"tslib": "catalog:",
61-
"use-sync-external-store": "^1.2.0"
60+
"tslib": "catalog:"
6261
},
6362
"peerDependencies": {
6463
"@types/react": "18",
@@ -80,7 +79,6 @@
8079
"@testing-library/user-event": "catalog:",
8180
"@tokens-studio/sd-transforms": "^2.0.3",
8281
"@types/culori": "^4.0.1",
83-
"@types/use-sync-external-store": "0.0.6",
8482
"@vitejs/plugin-react": "catalog:",
8583
"culori": "^4.0.2",
8684
"enzyme": "catalog:",

packages/core/src/hooks/overlays/useLegacyOverlayStack.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { useCallback } from "react";
18-
import { useSyncExternalStore } from "use-sync-external-store/shim";
17+
import { useCallback, useSyncExternalStore } from "react";
1918

2019
import { Classes } from "../../common";
2120
import type { OverlayInstance } from "../../components";

pnpm-lock.yaml

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)