From 4be7d70b6cac8a382502e63805a0af2397809c54 Mon Sep 17 00:00:00 2001 From: Hikari Hayashi Date: Tue, 26 Apr 2022 22:20:05 +0800 Subject: [PATCH] Use fully-specified path to import use-sync-external-store/shim --- src/devtools/devtools.tsx | 2 +- src/reactjs/useBaseQuery.ts | 2 +- src/reactjs/useIsFetching.ts | 2 +- src/reactjs/useIsMutating.ts | 2 +- src/reactjs/useMutation.ts | 2 +- src/reactjs/useQueries.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/devtools/devtools.tsx b/src/devtools/devtools.tsx index 6bf7abd2a3..d141f31034 100644 --- a/src/devtools/devtools.tsx +++ b/src/devtools/devtools.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useSyncExternalStore } from 'use-sync-external-store/shim' +import { useSyncExternalStore } from 'use-sync-external-store/shim/index.js' import { Query, useQueryClient, diff --git a/src/reactjs/useBaseQuery.ts b/src/reactjs/useBaseQuery.ts index 389a819ce4..56622efba5 100644 --- a/src/reactjs/useBaseQuery.ts +++ b/src/reactjs/useBaseQuery.ts @@ -1,5 +1,5 @@ import React from 'react' -import { useSyncExternalStore } from 'use-sync-external-store/shim' +import { useSyncExternalStore } from 'use-sync-external-store/shim/index.js' import { QueryKey, notifyManager, QueryObserver } from '../core' import { useQueryErrorResetBoundary } from './QueryErrorResetBoundary' diff --git a/src/reactjs/useIsFetching.ts b/src/reactjs/useIsFetching.ts index 2fe9554cb2..a9d54b0944 100644 --- a/src/reactjs/useIsFetching.ts +++ b/src/reactjs/useIsFetching.ts @@ -1,5 +1,5 @@ import React from 'react' -import { useSyncExternalStore } from 'use-sync-external-store/shim' +import { useSyncExternalStore } from 'use-sync-external-store/shim/index.js' import { ContextOptions } from './types' import { QueryKey, notifyManager } from '../core' diff --git a/src/reactjs/useIsMutating.ts b/src/reactjs/useIsMutating.ts index 51b477a8dd..cada41b9e8 100644 --- a/src/reactjs/useIsMutating.ts +++ b/src/reactjs/useIsMutating.ts @@ -1,5 +1,5 @@ import React from 'react' -import { useSyncExternalStore } from 'use-sync-external-store/shim' +import { useSyncExternalStore } from 'use-sync-external-store/shim/index.js' import { notifyManager } from '../core/notifyManager' import { MutationKey } from '../core/types' diff --git a/src/reactjs/useMutation.ts b/src/reactjs/useMutation.ts index 4a10b87d02..fa8dc4e675 100644 --- a/src/reactjs/useMutation.ts +++ b/src/reactjs/useMutation.ts @@ -1,5 +1,5 @@ import React from 'react' -import { useSyncExternalStore } from 'use-sync-external-store/shim' +import { useSyncExternalStore } from 'use-sync-external-store/shim/index.js' import { notifyManager } from '../core' import { noop, parseMutationArgs } from '../core/utils' diff --git a/src/reactjs/useQueries.ts b/src/reactjs/useQueries.ts index ff68840111..97f4cd6c5d 100644 --- a/src/reactjs/useQueries.ts +++ b/src/reactjs/useQueries.ts @@ -1,5 +1,5 @@ import React from 'react' -import { useSyncExternalStore } from 'use-sync-external-store/shim' +import { useSyncExternalStore } from 'use-sync-external-store/shim/index.js' import { QueryKey, QueryFunction } from '../core/types' import { notifyManager } from '../core/notifyManager'