Skip to content

Commit fb35123

Browse files
committed
fix: uSES import for react-native / esm
1 parent 5f80b09 commit fb35123

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

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/index.js'
2+
import { useSyncExternalStore } from './useSyncExternalStore'
33

44
import { QueryKey, notifyManager, QueryObserver } from '../core'
55
import { useQueryErrorResetBoundary } from './QueryErrorResetBoundary'
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// @ts-ignore
2+
// eslint-disable-next-line import/no-unresolved
3+
import { useSyncExternalStore } from 'use-sync-external-store/shim/index.native.js'
4+
export { useSyncExternalStore }
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// @ts-ignore
2+
// eslint-disable-next-line import/no-unresolved
3+
import { useSyncExternalStore } from 'use-sync-external-store/shim/index.js'
4+
export { useSyncExternalStore }

0 commit comments

Comments
 (0)