File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ changes.
1616
1717### Fixed
1818
19- -
19+ - Fix infinite DRep list loading [ Issue 2285 ] ( https://github.com/IntersectMBO/govtool/issues/2285 )
2020
2121### Changed
2222
Original file line number Diff line number Diff line change @@ -75,7 +75,9 @@ const DataActionsBarProvider: FC<ProviderProps> = ({ children }) => {
7575
7676 useEffect ( ( ) => {
7777 if (
78- ( userMovedToDifferentAppArea && ! userOpenedGADetailsFromCategoryPage ) ||
78+ ( ! pathname . includes ( "drep_directory" ) &&
79+ userMovedToDifferentAppArea &&
80+ ! userOpenedGADetailsFromCategoryPage ) ||
7981 userMovedFromGAListToCategoryPage
8082 ) {
8183 resetState ( ) ;
@@ -116,7 +118,7 @@ const DataActionsBarProvider: FC<ProviderProps> = ({ children }) => {
116118 ) ;
117119
118120 return (
119- < DataActionsBarContext . Provider value = { contextValue } >
121+ < DataActionsBarContext . Provider value = { contextValue } key = { pathname } >
120122 { children }
121123 </ DataActionsBarContext . Provider >
122124 ) ;
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export const useGetDRepListInfiniteQuery = (
3333 pendingTransaction . registerAsDrep ||
3434 pendingTransaction . retireAsDirectVoter ||
3535 pendingTransaction . retireAsDrep
36- ) ?. transactionHash ?? ' noPendingTransaction' ,
36+ ) ?. transactionHash ?? " noPendingTransaction" ,
3737 filters . length ? filters : "" ,
3838 searchPhrase ?? "" ,
3939 sorting ?? "" ,
You can’t perform that action at this time.
0 commit comments