File tree Expand file tree Collapse file tree 8 files changed +11
-17
lines changed Expand file tree Collapse file tree 8 files changed +11
-17
lines changed Original file line number Diff line number Diff line change 11import { useEffect } from 'react' ;
2- import { pipelinesActions , runsActions } from '../../../../../redux/actions' ;
2+ // import { pipelinesActions, runsActions } from '../../../../../redux/actions';
33import {
44 pipelinePagesSelectors ,
55 runSelectors ,
66} from '../../../../../redux/selectors' ;
7- import { useSelector , useDispatch } from '../../../../hooks' ;
7+ import { useSelector } from '../../../../hooks' ;
88
99interface ServiceInterface {
1010 fetching : boolean ;
@@ -13,13 +13,7 @@ interface ServiceInterface {
1313
1414export const useService = ( ) : ServiceInterface => {
1515 const fetching = useSelector ( pipelinePagesSelectors . fetching ) ;
16- // const currentWorkspace = useSelector(pipelinePagesSelectors.currentWorkspace);
1716
18- // const runs1 = useSelector((state: any) => {
19- // debugger;
20- // return state.persisted.runs.allNewRuns || [];
21- // });
22- const dispatch = useDispatch ( ) ;
2317 const runs = useSelector ( runSelectors . myRuns ) ;
2418 useEffect ( ( ) => { } , [ runs ] ) ;
2519
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export const useService = (): ServiceInterface => {
2121 } , 5000 ) ;
2222
2323 return ( ) => clearInterval ( intervalId ) ; //This is important
24- } , [ ] ) ;
24+ } ) ;
2525 return {
2626 organization,
2727 } ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { translate } from './translate';
33import { List } from './List' ;
44import { BasePage } from '../BasePage' ;
55import { routePaths } from '../../../../routes/routePaths' ;
6- import { WorkspaceDropdown } from './WorkspaceDropdown' ;
6+ // import { WorkspaceDropdown } from './WorkspaceDropdown';
77import { useService } from './useService' ;
88
99const PAGES = [
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export const DeleteMember: React.FC<{ member: TInvite }> = ({ member }) => {
2828 } , 5000 ) ;
2929
3030 return ( ) => clearInterval ( intervalId ) ; //This is important
31- } , [ ] ) ;
31+ } ) ;
3232 const onDelete = ( ) => {
3333 setSubmitting ( true ) ;
3434 dispatch (
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { routePaths } from '../../../../routes/routePaths';
66// import { WorkspaceDropdown } from './WorkspaceDropdown';
77import { useService } from './useService' ;
88import { useLocationPath } from '../../../hooks' ;
9- import { WorkspaceDropdown } from './WorkspaceDropdown' ;
9+ // import { WorkspaceDropdown } from './WorkspaceDropdown';
1010import FilterComponent , {
1111 getInitialFilterState ,
1212} from '../../../components/Filters' ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { organizationSelectors } from '../../../redux/selectors';
44import {
55 useDispatch ,
66 useLocationPath ,
7- useRequestOnMount ,
7+ // useRequestOnMount,
88 useSelector ,
99} from '../../hooks' ;
1010
@@ -30,7 +30,7 @@ export const useService = (): ServiceInterface => {
3030 } , 5000 ) ;
3131
3232 return ( ) => clearInterval ( intervalId ) ;
33- } , [ ] ) ;
33+ } ) ;
3434
3535 return {
3636 organization,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { translate } from './translate';
33import { List } from './List' ;
44import { BasePage } from '../BasePage' ;
55import { routePaths } from '../../../../routes/routePaths' ;
6- import { WorkspaceDropdown } from './WorkspaceDropdown' ;
6+ // import { WorkspaceDropdown } from './WorkspaceDropdown';
77import { useService } from './useService' ;
88
99import FilterComponent , {
@@ -58,7 +58,7 @@ const BREADCRUMBS = [
5858
5959export const Stacks : React . FC = ( ) => {
6060 const { setFetching } = useService ( ) ;
61-
61+ console . log ( setFetching ) ;
6262 return (
6363 < BasePage
6464 tabPages = { PAGES }
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export const useService = (): ServiceInterface => {
1818 } , 5000 ) ;
1919
2020 return ( ) => clearInterval ( intervalId ) ; //This is important
21- } , [ ] ) ;
21+ } ) ;
2222 return {
2323 organization,
2424 } ;
You can’t perform that action at this time.
0 commit comments