Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/keaPublic

Commitd32173c

Browse files
committed
remove "window"
1 parentb692b48 commitd32173c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/react/hooks.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export function useMountedLogic<L extends Logic = Logic>(logic: BuiltLogic<L> |
9494
returnbuiltLogicasBuiltLogic<L>
9595
}
9696

97-
lettimeout:number
97+
lettimeout:any
9898
/** Delay Redux subscriptions from firing and asking React to re-render.
9999
* Will set a Timeout to flush if store changed during callback. */
100100
exportfunctionbatchChanges(callback:()=>void){
@@ -108,7 +108,7 @@ export function batchChanges(callback: () => void) {
108108
}
109109
constnewState=getStoreState()
110110
if(previousState!==newState){
111-
timeout&&window.clearTimeout(timeout)
112-
timeout=window.setTimeout(()=>getContext().store.dispatch({type:'@KEA/FLUSH'}),0)
111+
timeout&&clearTimeout(timeout)
112+
timeout=setTimeout(()=>getContext().store.dispatch({type:'@KEA/FLUSH'}),0)
113113
}
114114
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp