Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: uSES import for react-native / esm #3601

Merged
merged 3 commits into from
May 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/devtools/devtools.tsx
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 '../reactjs/useSyncExternalStore'
import {
Query,
useQueryClient,
Expand Down
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'
hirbod marked this conversation as resolved.
Show resolved Hide resolved

import { QueryKey, notifyManager, QueryObserver } from '../core'
import { useQueryErrorResetBoundary } from './QueryErrorResetBoundary'
Expand Down
2 changes: 1 addition & 1 deletion src/reactjs/useIsFetching.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 { ContextOptions } from './types'
import { QueryKey, notifyManager } from '../core'
Expand Down
2 changes: 1 addition & 1 deletion src/reactjs/useIsMutating.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 { notifyManager } from '../core/notifyManager'
import { MutationKey } from '../core/types'
Expand Down
2 changes: 1 addition & 1 deletion src/reactjs/useMutation.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 { notifyManager } from '../core'
import { noop, parseMutationArgs } from '../core/utils'
Expand Down
2 changes: 1 addition & 1 deletion src/reactjs/useQueries.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, QueryFunction } from '../core/types'
import { notifyManager } from '../core/notifyManager'
Expand Down
2 changes: 2 additions & 0 deletions src/reactjs/useSyncExternalStore.native.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// @ts-ignore
export { useSyncExternalStore } from 'use-sync-external-store/shim/index.native.js'
1 change: 1 addition & 0 deletions src/reactjs/useSyncExternalStore.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { useSyncExternalStore } from 'use-sync-external-store/shim/index.js'