fix: reorganize data loading and auto-refresh logic in SiteDashboardP… #25
Reference in New Issue
Block a user
No description provided.
Delete Branch "staging"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
fix: reorganize data loading and auto-refresh logic in SiteDashboardPage for improved clarity and maintainability
Greptile Overview
Greptile Summary
This PR reorganizes the placement of the auto-refresh
useEffecthook inSiteDashboardPage, moving it from line 130 to line 209 (after theloadDataandloadRealtimecallback definitions). This is a code maintainability improvement that groups the effect closer to the callbacks it depends on, making the code easier to understand.Key changes:
useEffecthook to appear afterloadDataandloadRealtimecallbacksConfidence Score: 5/5
Important Files Changed