Skip to content

Commit

Permalink
build: import with-selector with extension from useESE (#1967)
Browse files Browse the repository at this point in the history
* build: import with-selector with extension from useESE

* fix shim import
  • Loading branch information
huozhi committed May 14, 2022
1 parent d81aa78 commit e81d22f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/use-swr.ts
@@ -1,5 +1,5 @@
import { useCallback, useRef, useDebugValue } from 'react'
import { useSyncExternalStoreWithSelector } from 'use-sync-external-store/shim/with-selector'
import { useSyncExternalStoreWithSelector } from 'use-sync-external-store/with-selector.js'

import {
defaultConfig,
Expand Down
2 changes: 1 addition & 1 deletion infinite/index.ts
Expand Up @@ -27,7 +27,7 @@ import type {
SWRInfiniteFetcher,
SWRInfiniteCacheValue
} from './types'
import { useSyncExternalStore } from 'use-sync-external-store/shim'
import { useSyncExternalStore } from 'use-sync-external-store/shim/index.js'

const INFINITE_PREFIX = '$inf$'

Expand Down

0 comments on commit e81d22f

Please sign in to comment.