Skip to content

Commit d676df8

Browse files
committed
feat: reduce staleTime for data fetching to improve responsiveness
1 parent 193f203 commit d676df8

24 files changed

Lines changed: 85 additions & 17 deletions

File tree

.changeset/pre.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"easy-candies-smile",
2727
"empty-coats-care",
2828
"full-readers-itch",
29+
"green-peaches-cough",
2930
"hip-doors-notice",
3031
"hungry-words-hang",
3132
"loud-gifts-tell",

apps/chaingraph-backend/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @badaitech/chaingraph-backend
22

3+
## 0.5.5-dev.25
4+
5+
### Patch Changes
6+
7+
- feat: reduce staleTime for data fetching to improve responsiveness
8+
39
## 0.5.5-dev.24
410

511
### Patch Changes

apps/chaingraph-backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@badaitech/chaingraph-backend",
33
"type": "module",
4-
"version": "0.5.5-dev.24",
4+
"version": "0.5.5-dev.25",
55
"private": false,
66
"description": "Backend server for the Chaingraph project",
77
"license": "BUSL-1.1",

apps/chaingraph-execution-api/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# @badaitech/chaingraph-execution-api
22

3+
## 0.5.5-dev.25
4+
5+
### Patch Changes
6+
7+
- feat: reduce staleTime for data fetching to improve responsiveness
8+
- Updated dependencies
9+
- @badaitech/chaingraph-executor@0.5.5-dev.25
10+
- @badaitech/chaingraph-trpc@0.5.5-dev.25
11+
- @badaitech/chaingraph-types@0.5.5-dev.25
12+
313
## 0.5.5-dev.24
414

515
### Patch Changes

apps/chaingraph-execution-api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@badaitech/chaingraph-execution-api",
33
"type": "module",
4-
"version": "0.5.5-dev.24",
4+
"version": "0.5.5-dev.25",
55
"private": false,
66
"description": "Chaingraph tRPC Server - Scalable API server for Chaingraph execution management",
77
"license": "BUSL-1.1",

apps/chaingraph-execution-worker/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# @badaitech/chaingraph-execution-worker
22

3+
## 0.5.5-dev.25
4+
5+
### Patch Changes
6+
7+
- feat: reduce staleTime for data fetching to improve responsiveness
8+
- Updated dependencies
9+
- @badaitech/chaingraph-executor@0.5.5-dev.25
10+
- @badaitech/chaingraph-trpc@0.5.5-dev.25
11+
- @badaitech/chaingraph-nodes@0.5.5-dev.25
12+
- @badaitech/chaingraph-types@0.5.5-dev.25
13+
314
## 0.5.5-dev.24
415

516
### Patch Changes

apps/chaingraph-execution-worker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@badaitech/chaingraph-execution-worker",
33
"type": "module",
4-
"version": "0.5.5-dev.24",
4+
"version": "0.5.5-dev.25",
55
"private": false,
66
"description": "Chaingraph Execution Worker Service which connected to Kafka and process the flow executions",
77
"license": "BUSL-1.1",

apps/chaingraph-frontend/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# @badaitech/chaingraph-frontend
22

3+
## 0.5.5-dev.25
4+
5+
### Patch Changes
6+
7+
- feat: reduce staleTime for data fetching to improve responsiveness
8+
- Updated dependencies
9+
- @badaitech/chaingraph-executor@0.5.5-dev.25
10+
- @badaitech/chaingraph-trpc@0.5.5-dev.25
11+
- @badaitech/badai-api@0.5.5-dev.25
12+
- @badaitech/chaingraph-nodes@0.5.5-dev.25
13+
- @badaitech/chaingraph-types@0.5.5-dev.25
14+
315
## 0.5.5-dev.24
416

517
### Patch Changes

apps/chaingraph-frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@badaitech/chaingraph-frontend",
33
"type": "module",
4-
"version": "0.5.5-dev.24",
4+
"version": "0.5.5-dev.25",
55
"private": false,
66
"description": "Frontend application for the Chaingraph project",
77
"license": "BUSL-1.1",

apps/chaingraph-frontend/src/components/sidebar/tabs/flow/hooks/useSelectedFlow.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ export function useSelectedFlow() {
3232
flowId: storedFlowId!,
3333
}, {
3434
enabled: Boolean(storedFlowId),
35-
staleTime: 1000 * 15, // Consider data fresh for 1 minute
36-
// Proper query options
37-
gcTime: 1000 * 60 * 5, // Keep in cache for 5 minutes
38-
retry: false, // Don't retry on error
3935
})
4036

4137
// Handle flow selection/deselection

0 commit comments

Comments
 (0)