Skip to content

Commit

Permalink
fix: uSES import for react-native / esm
Browse files Browse the repository at this point in the history
  • Loading branch information
hirbod committed May 11, 2022
1 parent 5f80b09 commit fb35123
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/reactjs/useBaseQuery.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { useSyncExternalStore } from 'use-sync-external-store/shim/index.js'
import { useSyncExternalStore } from './useSyncExternalStore'

import { QueryKey, notifyManager, QueryObserver } from '../core'
import { useQueryErrorResetBoundary } from './QueryErrorResetBoundary'
Expand Down
4 changes: 4 additions & 0 deletions src/reactjs/useSyncExternalStore.native.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// @ts-ignore
// eslint-disable-next-line import/no-unresolved
import { useSyncExternalStore } from 'use-sync-external-store/shim/index.native.js'
export { useSyncExternalStore }
4 changes: 4 additions & 0 deletions src/reactjs/useSyncExternalStore.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// @ts-ignore
// eslint-disable-next-line import/no-unresolved
import { useSyncExternalStore } from 'use-sync-external-store/shim/index.js'
export { useSyncExternalStore }

0 comments on commit fb35123

Please sign in to comment.