File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change
1
+ // Default to a dummy "batch" implementation that just runs the callback
2
+ function defaultNoopBatch ( callback ) {
3
+ callback ( )
4
+ }
5
+
6
+ let batch = defaultNoopBatch
7
+
8
+ // Allow injecting another batching function later
9
+ export const setBatch = newBatch => ( batch = newBatch )
10
+
11
+ // Supply a getter just to skip dealing with ESM bindings
12
+ export const getBatch = ( ) => batch
Original file line number Diff line number Diff line change
1
+ /* eslint-disable import/no-unresolved */
2
+ export { unstable_batchedUpdates } from 'react-dom'
Original file line number Diff line number Diff line change
1
+ /* eslint-disable import/no-unresolved */
2
+ import { unstable_batchedUpdates } from 'react-native'
3
+
4
+ export { unstable_batchedUpdates }
You can’t perform that action at this time.
0 commit comments