Skip to content
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
1 change: 1 addition & 0 deletions .changepacks/changepack_log_SP0904pcO-xGA0eIgJ3Nb.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"changes":{"packages/hookform/package.json":"Patch","packages/react-query/package.json":"Patch"},"note":"update react-query version","date":"2026-07-14T00:55:20.759158700Z"}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
.claude
.sisyphus
.omc
.omo
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ function UserList() {
{
// React Query options
staleTime: 5 * 60 * 1000, // 5 minutes
cacheTime: 10 * 60 * 1000, // 10 minutes
gcTime: 10 * 60 * 1000, // 10 minutes
refetchOnWindowFocus: false,
retry: 3,
}
Expand Down Expand Up @@ -892,8 +892,8 @@ function CreateUserForm() {
<form onSubmit={handleSubmit}>
<input name="name" placeholder="Name" required />
<input name="email" type="email" placeholder="Email" required />
<button type="submit" disabled={mutation.isLoading}>
{mutation.isLoading ? 'Creating...' : 'Create User'}
<button type="submit" disabled={mutation.isPending}>
{mutation.isPending ? 'Creating...' : 'Create User'}
</button>
{mutation.isError && <div>Error: {mutation.error.message}</div>}
{mutation.isSuccess && <div>User created successfully!</div>}
Expand Down
26 changes: 13 additions & 13 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"lint:fix": "biome check --write",
"prepare": "husky",
"build": "bun run -F @devup-api/core build && bun run -F @devup-api/utils build && bun run -F @devup-api/generator build && bun run -F @devup-api/fetch build && bun run -F @devup-api/zod build && bun run -F @devup-api/webpack-plugin build && bun run -F @devup-api/vite-plugin build && bun run -F @devup-api/next-plugin build && bun run -F @devup-api/rsbuild-plugin build && bun run -F @devup-api/react-query build && bun run -F @devup-api/hookform build && bun run -F @devup-api/ui build",
"publish": "bun publish --cwd packages/core && bun publish --cwd packages/utils && bun publish --cwd packages/generator && bun publish --cwd packages/fetch && bun publish --cwd packages/zod && bun publish --cwd packages/webpack-plugin && bun publish --cwd packages/vite-plugin && bun publish --cwd packages/next-plugin && bun publish --cwd packages/rsbuild-plugin && bun publish --cwd packages/react-query && bun publish --cwd packages/hookform && bun publish --cwd packages/ui"
"publish": "bun publish --cwd packages/core && bun publish --cwd packages/utils && bun publish --cwd packages/generator && bun publish --cwd packages/fetch && bun publish --cwd packages/zod && bun publish --cwd packages/webpack-plugin && bun publish --cwd packages/vite-plugin && bun publish --cwd packages/next-plugin && bun publish --cwd packages/rsbuild-plugin && bun publish --cwd packages/react-query && bun publish --cwd packages/hookform && bun publish --cwd packages/ui",
"changepacks": "bunx @changepacks/cli"
},
"workspaces": [
"packages/*",
Expand Down
2 changes: 1 addition & 1 deletion packages/hookform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"zod": "*"
},
"devDependencies": {
"@tanstack/react-query": "^5.96",
"@tanstack/react-query": "^5",
"@testing-library/react": "^16.3",
"@types/node": "^25.5",
"@types/react": "^19.2",
Expand Down
6 changes: 3 additions & 3 deletions packages/react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
"access": "public"
},
"dependencies": {
"@devup-api/fetch": "workspace:^",
"@tanstack/react-query": ">=5.96"
"@devup-api/fetch": "workspace:^"
},
"peerDependencies": {
"react": "*",
"@tanstack/react-query": "*"
"@tanstack/react-query": ">=5.0.0"
},
"devDependencies": {
"@tanstack/react-query": "^5",
"@testing-library/react-hooks": "^8.0.1",
"@types/node": "^25.5",
"@types/react": "^19.2",
Expand Down