File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 99 setReleases ,
1010} from '@/slices/github' ;
1111
12- import useDeviceIndex from '@/hooks/useDeviceIndex' ;
13-
12+ // import useDeviceIndex from '@/hooks/useDeviceIndex';
1413import ago from '@/utils/ago' ;
1514
1615import {
@@ -22,11 +21,11 @@ import { useAppDispatch, useAppSelector } from '@/store';
2221
2322const FetchHandler : FC = ( ) => {
2423 const dispatch = useAppDispatch ( ) ;
25- const index = useDeviceIndex ( ) ;
24+ // const index = useDeviceIndex();
2625
27- const isConnected = useAppSelector ( state =>
26+ /* const isConnected = useAppSelector(state =>
2827 index === null ? undefined : state.opendtu.dtuStates[index]?.isConnected,
29- ) ;
28+ );*/
3029 const latestReleaseRefetchOk = useAppSelector ( state =>
3130 state . github . latestRelease . lastUpdate
3231 ? ago ( state . github . latestRelease . lastUpdate ) > 1000 * 60 * 10 // 10 minutes
@@ -52,7 +51,7 @@ const FetchHandler: FC = () => {
5251 const githubApi = useGithub ( ) ;
5352
5453 useEffect ( ( ) => {
55- if ( ! isConnected || ! githubApi ) return ;
54+ if ( /* !isConnected || */ ! githubApi ) return ;
5655
5756 console . log ( 'fetching latest github data' ) ;
5857
@@ -98,7 +97,7 @@ const FetchHandler: FC = () => {
9897 func ( ) ;
9998 } , [
10099 dispatch ,
101- isConnected ,
100+ // isConnected,
102101 githubApi ,
103102 latestReleaseRefetchOk ,
104103 allReleasesRefetchOk ,
You can’t perform that action at this time.
0 commit comments