Skip to content

Commit a1a4d3d

Browse files
committed
Fix issue with ESM import of use-sync-external-store. See: facebook/react#25231
1 parent dc8a592 commit a1a4d3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react/src/hooks/useSyncExternalStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react'
2-
import * as UseSyncExternalStoreShim from 'use-sync-external-store/shim'
2+
import * as UseSyncExternalStoreShim from 'use-sync-external-store/shim/index.js'
33

44
// useSyncExternalStore doesn't exist in React 17, so shim it if necessary
55
const useSyncExternalStore =

0 commit comments

Comments
 (0)