Commit ec7db6b 1 parent 16e13e9 commit ec7db6b Copy full SHA for ec7db6b
File tree 3 files changed +1
-29
lines changed
src/stores/JournalData/Logs
3 files changed +1
-29
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,6 @@ const getInitialStateData = (): Pick<
49
49
| 'noData'
50
50
| 'olderFinished'
51
51
| 'refresh'
52
- | 'scrollOnLoad'
53
52
| 'scrollToWhenDone'
54
53
| 'tailNewLogs'
55
54
> => ( {
@@ -63,7 +62,6 @@ const getInitialStateData = (): Pick<
63
62
fetchingOlder : false ,
64
63
noData : false ,
65
64
olderFinished : false ,
66
- scrollOnLoad : true ,
67
65
refresh : null ,
68
66
tailNewLogs : false ,
69
67
} ) ;
@@ -135,6 +133,7 @@ const getInitialState = (
135
133
} ,
136
134
137
135
addNewDocuments : ( docs , olderFinished , lastParsed ) => {
136
+ console . log ( 'addNewDocuments' ) ;
138
137
set (
139
138
produce ( ( state : JournalDataLogsState ) => {
140
139
if ( ! docs ) {
@@ -267,16 +266,6 @@ const getInitialState = (
267
266
) ;
268
267
} ,
269
268
270
- setScrollOnLoad : ( newState ) => {
271
- set (
272
- produce ( ( state : JournalDataLogsState ) => {
273
- state . scrollOnLoad = newState ;
274
- } ) ,
275
- false ,
276
- 'JournalsData:Logs: Scroll On Load Set'
277
- ) ;
278
- } ,
279
-
280
269
resetState : ( ) => {
281
270
set (
282
271
{ ...getInitialStateData ( ) , ...getInitialHydrationData ( ) } ,
Original file line number Diff line number Diff line change @@ -16,13 +16,6 @@ export const useJournalDataLogsStore_hydrated = () => {
16
16
> ( JournalDataStoreNames . LOGS , ( state ) => state . hydrated ) ;
17
17
} ;
18
18
19
- export const useJournalDataLogsStore_refresh = ( ) => {
20
- return useZustandStore <
21
- JournalDataLogsState ,
22
- JournalDataLogsState [ 'refresh' ]
23
- > ( JournalDataStoreNames . LOGS , ( state ) => state . refresh ) ;
24
- } ;
25
-
26
19
export const useJournalDataLogsStore_documents = ( ) => {
27
20
return useZustandStore <
28
21
JournalDataLogsState ,
@@ -72,13 +65,6 @@ export const useJournalDataLogsStore_resetState = () => {
72
65
> ( JournalDataStoreNames . LOGS , ( state ) => state . resetState ) ;
73
66
} ;
74
67
75
- export const useJournalDataLogsStore_allowFetchingMore = ( ) => {
76
- return useZustandStore <
77
- JournalDataLogsState ,
78
- JournalDataLogsState [ 'allowFetchingMore' ]
79
- > ( JournalDataStoreNames . LOGS , ( state ) => state . allowFetchingMore ) ;
80
- } ;
81
-
82
68
export const useJournalDataLogsStore_setAllowFetchingMore = ( ) => {
83
69
return useZustandStore <
84
70
JournalDataLogsState ,
Original file line number Diff line number Diff line change @@ -25,9 +25,6 @@ export interface JournalDataLogsState extends StoreWithHydration {
25
25
olderFinished : boolean ;
26
26
setOlderFinished : ( val : JournalDataLogsState [ 'olderFinished' ] ) => void ;
27
27
28
- scrollOnLoad : boolean ;
29
- setScrollOnLoad : ( val : JournalDataLogsState [ 'scrollOnLoad' ] ) => void ;
30
-
31
28
tailNewLogs : boolean ;
32
29
setTailNewLogs : ( val : JournalDataLogsState [ 'tailNewLogs' ] ) => void ;
33
30
You can’t perform that action at this time.
0 commit comments