Commit 00f50a8
committed
Fix intermittent thread messages not loading on prod
- Change refetchOnMount from false to 'always' to ensure fresh data
- Reduce staleTime from 5 minutes to 30 seconds
- Reduce gcTime from 30 minutes to 10 minutes
This fixes the issue where messages wouldn't load if initial fetch
failed or returned empty due to auth timing issues.1 parent a840eb1 commit 00f50a8
File tree
2 files changed
+4
-3
lines changed- frontend/src
- app/(home)/projects/[projectId]/thread/_hooks
- hooks/react-query/threads
2 files changed
+4
-3
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
0 commit comments