react-redux: add new batch function from v7 (#34787)

This commit is contained in:
Thomas Levy
2019-04-17 14:45:08 -07:00
committed by Armando Aguirre
parent 6b2d4c3691
commit b747904a7c
+6
View File
@@ -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;