mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
react-redux: add new batch function from v7 (#34787)
This commit is contained in:
committed by
Armando Aguirre
parent
6b2d4c3691
commit
b747904a7c
Vendored
+6
@@ -439,3 +439,9 @@ export class Provider<A extends Action = AnyAction> extends Component<ProviderPr
|
||||
* redux store instead of this approeach.
|
||||
*/
|
||||
export const ReactReduxContext: Context<ReactReduxContextValue>;
|
||||
|
||||
/**
|
||||
* Wraps ReactDOM or React Native's internal unstable_batchedUpdate function. You can use it to ensure that
|
||||
* multiple actions dispatched outside of React only result in a single render update.
|
||||
*/
|
||||
export function batch(cb: () => void): void;
|
||||
|
||||
Reference in New Issue
Block a user