Skip to content

Commit da489ef

Browse files
authored
Revert "Remove index.js suffix of use-sync-external-store/shim to support React Native" (#2802)
1 parent 1f7dd10 commit da489ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/use-swr.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import ReactExports, {
55
useDebugValue,
66
useMemo
77
} from 'react'
8-
import { useSyncExternalStore } from 'use-sync-external-store/shim'
8+
import { useSyncExternalStore } from 'use-sync-external-store/shim/index.js'
99

1010
import {
1111
defaultConfig,

infinite/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import type {
3333
SWRInfiniteCacheValue,
3434
SWRInfiniteCompareFn
3535
} from './types'
36-
import { useSyncExternalStore } from 'use-sync-external-store/shim'
36+
import { useSyncExternalStore } from 'use-sync-external-store/shim/index.js'
3737
import { getFirstPageKey } from './serialize'
3838

3939
// const INFINITE_PREFIX = '$inf$'

0 commit comments

Comments
 (0)