File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
packages/scan/src/core/web/components/widget Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -116,19 +116,16 @@ export const Header = () => {
116116 } , [ ] ) ;
117117
118118 useEffect ( ( ) => {
119- const debouncedUpdate = debounce ( updateHeaderContent , 16 , { leading : true } ) ;
120-
121- const unsubscribeLastReportTime = Store . lastReportTime . subscribe ( debouncedUpdate ) ;
119+ const unsubscribeLastReportTime = Store . lastReportTime . subscribe ( updateHeaderContent ) ;
122120 const unsubscribeStoreInspectState = Store . inspectState . subscribe ( state => {
123121 if ( state . kind === 'focused' ) {
124- debouncedUpdate ( ) ;
122+ updateHeaderContent ( ) ;
125123 }
126124 } ) ;
127125
128126 return ( ) => {
129127 unsubscribeLastReportTime ( ) ;
130128 unsubscribeStoreInspectState ( ) ;
131- debouncedUpdate . cancel ?.( ) ;
132129 } ;
133130 } , [ updateHeaderContent ] ) ;
134131
You can’t perform that action at this time.
0 commit comments