Commit 52ec332
fix: ensure log details refresh when selecting different logs
- Set staleTime to 0 for useLogDetail hook to always consider cached data stale
- Add refetchOnMount: 'always' to ensure fresh data is fetched when a log is selected
- Reduce prefetch staleTime to 5 seconds for better consistency
This fixes the bug where users needed to hard refresh to see log details
of a specific log. The issue was that cached/initial data from the list
query wasn't being properly refreshed when selecting a log.
Co-authored-by: Emir Karabeg <emir-karabeg@users.noreply.github.com>1 parent 1b8d666 commit 52ec332
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
| 169 | + | |
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
| |||
190 | 191 | | |
191 | 192 | | |
192 | 193 | | |
193 | | - | |
| 194 | + | |
194 | 195 | | |
195 | 196 | | |
196 | 197 | | |
| |||
0 commit comments