Skip to content

Commit fdbc002

Browse files
authored
fix: Use fully-specified path to import use-sync-external-store/shim (#3561)
1 parent 3fabd41 commit fdbc002

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/devtools/devtools.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import { useSyncExternalStore } from 'use-sync-external-store/shim'
2+
import { useSyncExternalStore } from 'use-sync-external-store/shim/index.js'
33
import {
44
Query,
55
useQueryClient,

src/reactjs/useBaseQuery.ts

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

44
import { QueryKey, notifyManager, QueryObserver } from '../core'
55
import { useQueryErrorResetBoundary } from './QueryErrorResetBoundary'

src/reactjs/useIsFetching.ts

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

44
import { ContextOptions } from './types'
55
import { QueryKey, notifyManager } from '../core'

src/reactjs/useIsMutating.ts

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

44
import { notifyManager } from '../core/notifyManager'
55
import { MutationKey } from '../core/types'

src/reactjs/useMutation.ts

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

44
import { notifyManager } from '../core'
55
import { noop, parseMutationArgs } from '../core/utils'

src/reactjs/useQueries.ts

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

44
import { QueryKey, QueryFunction } from '../core/types'
55
import { notifyManager } from '../core/notifyManager'

0 commit comments

Comments
 (0)