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

feat: (breaking) api overhaul #45

Merged
merged 22 commits into from
Dec 7, 2023
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 .codesandbox/ci.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"buildCommand": "compile",
"sandboxes": ["new", "react-typescript-react-ts"],
"node": "14"
"node": "18"
}
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/dist
/src/vendor
/src/vendor
4 changes: 1 addition & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@
},
"alias": {
"extensions": [".js", ".jsx", ".ts", ".tsx", ".json"],
"map": [
["^jotai-tanstack-query$", "./src/index.ts"]
]
"map": [["^jotai-tanstack-query$", "./src/index.ts"]]
}
}
},
Expand Down
20 changes: 12 additions & 8 deletions __tests__/01_basic_spec.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
import {
atomsWithInfiniteQuery,
atomsWithMutation,
atomsWithQuery,
atomsWithQueryAsync,
atomWithInfiniteQuery,
atomWithMutation,
atomWithMutationState,
atomWithQuery,
atomWithSuspenseInfiniteQuery,
atomWithSuspenseQuery,
queryClientAtom,
} from '../src/index'

describe('basic spec', () => {
it('should export functions', () => {
expect(queryClientAtom).toBeDefined()
expect(atomsWithQuery).toBeDefined()
expect(atomsWithInfiniteQuery).toBeDefined()
expect(atomsWithMutation).toBeDefined()
expect(atomsWithQueryAsync).toBeDefined()
expect(atomWithQuery).toBeDefined()
expect(atomWithInfiniteQuery).toBeDefined()
expect(atomWithMutation).toBeDefined()
expect(atomWithSuspenseQuery).toBeDefined()
expect(atomWithSuspenseInfiniteQuery).toBeDefined()
expect(atomWithMutationState).toBeDefined()
})
})
Loading