@@ -33,6 +33,7 @@ function entriesReducer(
33
33
state ,
34
34
action ,
35
35
) {
36
+ console . log ( state , action )
36
37
switch ( action . type ) {
37
38
case LOAD_MORE :
38
39
const { entries } = action . payload ;
@@ -109,14 +110,25 @@ function reloadList({
109
110
selfoss . entriesPage . setSelectedEntry ( null ) ;
110
111
}
111
112
113
+ const reloader_ = reloader ;
114
+
115
+ reloader = ( ...args ) => {
116
+ const r = reloader_ ( ...args ) ;
117
+ console . trace ( 'reloader' , r ) ;
118
+ return r ;
119
+ }
120
+
112
121
setLoadingState ( LoadingState . LOADING ) ;
113
122
return reloader ( fetchParams , abortController ) . then ( ( { entries, hasMore } ) => {
114
123
setLoadingState ( LoadingState . SUCCESS ) ;
115
- selfoss . entriesPage . setHasMore ( hasMore ) ;
116
124
125
+ console . trace ( 'reloader-then' , abortController . signal , abortController . signal . aborted ) ;
117
126
if ( abortController . signal . aborted ) {
118
127
return ;
119
128
}
129
+ console . log ( 'after' )
130
+
131
+ selfoss . entriesPage . setHasMore ( hasMore ) ;
120
132
121
133
if ( append ) {
122
134
selfoss . entriesPage . appendEntries ( entries ) ;
@@ -284,7 +296,11 @@ export function EntriesPage({
284
296
return navSourcesExpanded ;
285
297
} , [ params . filter , currentTag , currentSource , searchText ] ) ;
286
298
287
- const [ moreLoadingState , setMoreLoadingState ] = useState ( LoadingState . INITIAL ) ;
299
+ const [ moreLoadingState , setMoreLoadingState_ ] = useState ( LoadingState . INITIAL ) ;
300
+ const setMoreLoadingState = ( ...args ) => {
301
+ console . trace ( 'moreState' , ...args ) ;
302
+ setMoreLoadingState_ ( ...args ) ;
303
+ } ;
288
304
289
305
// Perform the scheduled reload.
290
306
useEffect ( ( ) => {
0 commit comments