Skip to content

Commit

Permalink
Remove index.js suffix of use-sync-external-store/shim to support…
Browse files Browse the repository at this point in the history
… React Native (#2767)

remove `index.js` suffix to support React Native and fix #2402
  • Loading branch information
malash committed Sep 10, 2023
1 parent 141cccf commit a2bb5ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/use-swr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import ReactExports, {
useDebugValue,
useMemo
} from 'react'
import { useSyncExternalStore } from 'use-sync-external-store/shim/index.js'
import { useSyncExternalStore } from 'use-sync-external-store/shim'

import {
defaultConfig,
Expand Down
2 changes: 1 addition & 1 deletion infinite/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import type {
SWRInfiniteCacheValue,
SWRInfiniteCompareFn
} from './types'
import { useSyncExternalStore } from 'use-sync-external-store/shim/index.js'
import { useSyncExternalStore } from 'use-sync-external-store/shim'
import { getFirstPageKey } from './serialize'

// const INFINITE_PREFIX = '$inf$'
Expand Down

0 comments on commit a2bb5ae

Please sign in to comment.