Commit ea3b825
Move unstable_batchedUpdates out of the renderer implementation API (facebook#56567)
Summary:
Pull Request resolved: facebook#56567
Changelog: [internal]
`unstable_batchedUpdates` was only ever defined in Paper, where it batched state updates triggered by an event handler. Some product code in apps using only Fabric imported it directly from Paper, where it was a no-op. After Paper was removed from React Native, the no-op was kept in `RendererImplementation` (and forwarded through `RendererProxy`) purely to preserve that compatibility — it has nothing to do with the Fabric renderer indirection that the rest of `RendererImplementation` is for.
Drop it from the renderer implementation API and define the no-op directly at the `react-native` package boundary:
- `index.js.flow` and `index.js` now define `unstable_batchedUpdates` inline (the public re-export already came from the package, so consumers using `import {unstable_batchedUpdates} from 'react-native'` are unaffected).
- Remove the corresponding `unstable_batchedUpdates` definitions / re-exports from `RendererImplementation.js`, `RendererProxy.fb.js`, and the `jest-preset` mock.
Reviewed By: javache
Differential Revision: D101989236
fbshipit-source-id: 9d83668f0dbc108ec24371fba37ed7ce7b4529781 parent 68a6be9 commit ea3b825
4 files changed
Lines changed: 8 additions & 13 deletions
File tree
- packages
- jest-preset/jest/mocks
- react-native
- Libraries/ReactNative
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
42 | | - | |
43 | 41 | | |
Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | 56 | | |
64 | 57 | | |
65 | 58 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | | - | |
366 | | - | |
367 | | - | |
| 365 | + | |
| 366 | + | |
368 | 367 | | |
369 | 368 | | |
370 | 369 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
408 | | - | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
409 | 414 | | |
410 | 415 | | |
411 | 416 | | |
| |||
0 commit comments