@@ -354,6 +354,12 @@ function SearchAutocompleteList({
354354 debounceHandleSearch ( ) ;
355355 } , [ autocompleteQueryWithoutFilters , debounceHandleSearch ] ) ;
356356
357+ const reasonAttributes : SkeletonSpanReasonAttributes = {
358+ context : 'SearchAutocompleteList' ,
359+ isRecentSearchesDataLoaded,
360+ areOptionsInitialized,
361+ } ;
362+
357363 /* Sections generation */
358364 const { sections, styledRecentReports, suggestionsCount} = useMemo ( ( ) => {
359365 const nextSections : Array < Section < AutocompleteListItem > > = [ ] ;
@@ -412,6 +418,11 @@ function SearchAutocompleteList({
412418 fixedNumItems = { 3 }
413419 shouldStyleAsTable
414420 speed = { CONST . TIMING . SKELETON_ANIMATION_SPEED }
421+ reasonAttributes = { {
422+ context : 'SearchAutocompleteList' ,
423+ isRecentSearchesDataLoaded,
424+ areOptionsInitialized,
425+ } }
415426 />
416427 ) ,
417428 } ) ;
@@ -434,7 +445,20 @@ function SearchAutocompleteList({
434445 }
435446
436447 return { sections : nextSections , styledRecentReports : nextStyledRecentReports , suggestionsCount : nextSuggestionsCount } ;
437- } , [ autocompleteQueryValue , autocompleteSuggestions , expensifyIcons , getAdditionalSections , recentReportsOptions , recentSearchesData , searchOptions , searchQueryItem , styles , translate , areOptionsInitialized ] ) ;
448+ } , [
449+ autocompleteQueryValue ,
450+ autocompleteSuggestions ,
451+ expensifyIcons ,
452+ getAdditionalSections ,
453+ recentReportsOptions ,
454+ recentSearchesData ,
455+ searchOptions ,
456+ searchQueryItem ,
457+ styles ,
458+ translate ,
459+ areOptionsInitialized ,
460+ isRecentSearchesDataLoaded ,
461+ ] ) ;
438462
439463 const sectionItemText = sections ?. at ( 1 ) ?. data ?. [ 0 ] ?. text ?? '' ;
440464 const normalizedReferenceText = sectionItemText . toLowerCase ( ) ;
@@ -490,12 +514,6 @@ function SearchAutocompleteList({
490514 }
491515 } , [ autocompleteQueryValue , onHighlightFirstItem , normalizedReferenceText ] ) ;
492516
493- const reasonAttributes : SkeletonSpanReasonAttributes = {
494- context : 'SearchAutocompleteList' ,
495- isRecentSearchesDataLoaded,
496- areOptionsInitialized,
497- } ;
498-
499517 if ( isLoading ) {
500518 return (
501519 < OptionsListSkeletonView
0 commit comments