File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,6 @@ export const createTree = <T>(
166166 const ref = treeDataRef . current as TreeDataRef ;
167167 ref . isMounted = isMounted ;
168168 if ( isMounted ) {
169- console . log ( "apply waiting" , ref . waitingForMount ?. length ) ;
170169 ref . waitingForMount ?. forEach ( ( cb ) => cb ( ) ) ;
171170 ref . waitingForMount = [ ] ;
172171 }
@@ -186,10 +185,8 @@ export const createTree = <T>(
186185 } ;
187186 const ref = treeDataRef . current as TreeDataRef ;
188187 if ( ref . isMounted ) {
189- console . log ( "apply substate now" ) ;
190188 apply ( ) ;
191189 } else {
192- console . log ( "apply substate later" ) ;
193190 ref . waitingForMount ??= [ ] ;
194191 ref . waitingForMount . push ( apply ) ;
195192 }
@@ -200,14 +197,12 @@ export const createTree = <T>(
200197 if ( ref . isMounted ) {
201198 rebuildItemMeta ( ) ;
202199 config . setState ?.( state ) ;
203- console . log ( "rebuild now" ) ;
204200 } else {
205201 ref . waitingForMount ??= [ ] ;
206202 ref . waitingForMount . push ( ( ) => {
207203 rebuildItemMeta ( ) ;
208204 config . setState ?.( state ) ;
209205 } ) ;
210- console . log ( "rebuild later" ) ;
211206 }
212207 } ,
213208 scheduleRebuildTree : ( ) => {
You can’t perform that action at this time.
0 commit comments