Skip to content

Commit

Permalink
Revert "Remove index.js suffix of use-sync-external-store/shim to…
Browse files Browse the repository at this point in the history
… support React Native" (#2802)
  • Loading branch information
huozhi authored Sep 25, 2023
1 parent 1f7dd10 commit da489ef
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'
import { useSyncExternalStore } from 'use-sync-external-store/shim/index.js'

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'
import { useSyncExternalStore } from 'use-sync-external-store/shim/index.js'
import { getFirstPageKey } from './serialize'

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

0 comments on commit da489ef

Please sign in to comment.