We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentb692b48 commitd32173cCopy full SHA for d32173c
src/react/hooks.ts
@@ -94,7 +94,7 @@ export function useMountedLogic<L extends Logic = Logic>(logic: BuiltLogic<L> |
94
returnbuiltLogicasBuiltLogic<L>
95
}
96
97
-lettimeout:number
+lettimeout:any
98
/** Delay Redux subscriptions from firing and asking React to re-render.
99
* Will set a Timeout to flush if store changed during callback. */
100
exportfunctionbatchChanges(callback:()=>void){
@@ -108,7 +108,7 @@ export function batchChanges(callback: () => void) {
108
109
constnewState=getStoreState()
110
if(previousState!==newState){
111
-timeout&&window.clearTimeout(timeout)
112
-timeout=window.setTimeout(()=>getContext().store.dispatch({type:'@KEA/FLUSH'}),0)
+timeout&&clearTimeout(timeout)
+timeout=setTimeout(()=>getContext().store.dispatch({type:'@KEA/FLUSH'}),0)
113
114