Skip to content

Commit

Permalink
changes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
hirbod committed May 11, 2022
1 parent fb35123 commit 47ce53e
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 11 deletions.
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/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
4 changes: 1 addition & 3 deletions src/reactjs/useSyncExternalStore.native.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
// @ts-ignore
// eslint-disable-next-line import/no-unresolved
import { useSyncExternalStore } from 'use-sync-external-store/shim/index.native.js'
export { useSyncExternalStore }
export { useSyncExternalStore } from 'use-sync-external-store/shim/index.native.js'
4 changes: 1 addition & 3 deletions src/reactjs/useSyncExternalStore.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
// @ts-ignore
// eslint-disable-next-line import/no-unresolved
import { useSyncExternalStore } from 'use-sync-external-store/shim/index.js'
export { useSyncExternalStore }
export { useSyncExternalStore } from 'use-sync-external-store/shim/index.js'

0 comments on commit 47ce53e

Please sign in to comment.