mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-27 16:26:16 +08:00
3f28648931
Add staleTime and gcTime to useUsageQuery to avoid triggering unnecessary API calls when switching between app tabs. The staleTime is set dynamically based on the auto-refresh interval (or 5 minutes by default), and gcTime is set to 10 minutes to preserve cache after component unmount.