Commit 1443977
committed
fix(code): set explicit gcTime on QueryClient to match staleTime
Without an explicit gcTime, inactive queries using staleTime: Infinity
stay "fresh" forever and never get garbage collected. Setting gcTime
to match the default staleTime (5 min) ensures inactive query data is
cleaned up.1 parent 26e19a4 commit 1443977
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
0 commit comments