We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9aa6e15 commit 3678af2Copy full SHA for 3678af2
frontend/src/components/dashboard/Dashboard.tsx
@@ -104,18 +104,14 @@ const Dashboard = () => {
104
);
105
106
useEffect(() => {
107
- if (!context.enabled) {
+ if (!isPageLoaded) {
108
fetchData();
109
}
110
111
setIsPageLoaded(true);
112
- }, [fetchData, context.enabled]);
+ }, [fetchData, isPageLoaded]);
113
114
115
116
- fetchData();
117
- }
118
-
119
const interval = setInterval(() => {
120
if (context.enabled) {
121
0 commit comments