Skip to content

Commit cb5f64d

Browse files
alexzherdevtimdorr
authored andcommitted
Fix typo in unstable_batchedUpdates name (reduxjs#1317)
1 parent e736270 commit cb5f64d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api/batch.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ hide_title: true
1111
batch(fn: Function)
1212
```
1313

14-
React's `unstable_batchedUpdate()` API allows any React updates in an event loop tick to be batched together into a single render pass. React already uses this internally for its own event handler callbacks. This API is actually part of the renderer packages like ReactDOM and React Native, not the React core itself.
14+
React's `unstable_batchedUpdates()` API allows any React updates in an event loop tick to be batched together into a single render pass. React already uses this internally for its own event handler callbacks. This API is actually part of the renderer packages like ReactDOM and React Native, not the React core itself.
1515

1616
Since React-Redux needs to work in both ReactDOM and React Native environments, we've taken care of importing this API from the correct renderer at build time for our own use. We also now re-export this function publicly ourselves, renamed to `batch()`. You can use it to ensure that multiple actions dispatched outside of React only result in a single render update, like this:
1717

@@ -31,4 +31,4 @@ function myThunk() {
3131

3232
## References
3333

34-
- [`unstable_batchedUpdate()` API from React](https://github.com/facebook/react/commit/b41883fc708cd24d77dcaa767cde814b50b457fe)
34+
- [`unstable_batchedUpdates()` API from React](https://github.com/facebook/react/commit/b41883fc708cd24d77dcaa767cde814b50b457fe)

0 commit comments

Comments
 (0)