Skip to content

Commit

Permalink
Merge pull request #14 from zolplay-cn/cali
Browse files Browse the repository at this point in the history
feat(query): add all query exports
  • Loading branch information
CaliCastle authored Oct 24, 2022
2 parents f0aa54e + 34893cb commit a3a02c6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 22 deletions.
6 changes: 6 additions & 0 deletions packages/query/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @zolplay/query

## 0.2.0

### Minor Changes

- Added all export from query

## 0.1.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/query/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zolplay/query",
"version": "0.1.2",
"version": "0.2.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "dist/index.mjs",
Expand Down
23 changes: 2 additions & 21 deletions packages/query/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,6 @@ import { QueryClient, QueryClientConfig } from '@tanstack/react-query'

export const createQueryClient = (config?: QueryClientConfig) =>
new QueryClient(config)
export type {
InfiniteData,
MutationFunction,
MutationKey,
MutationOptions,
QueryFunction,
QueryKey,
QueryOptions,
UseInfiniteQueryOptions,
UseMutationOptions,
UseQueryOptions,
} from '@tanstack/react-query'
export {
QueryClient,
QueryClientProvider,
useInfiniteQuery,
useMutation,
useQueries,
useQuery,
useQueryClient,
} from '@tanstack/react-query'

export * from '@tanstack/react-query'
export { ReactQueryDevtools as QueryDevtools } from '@tanstack/react-query-devtools'

0 comments on commit a3a02c6

Please sign in to comment.