forked from Expensify/App
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreact-native+0.73.4+002+SuspenseFix.patch
74 lines (71 loc) · 2.88 KB
/
react-native+0.73.4+002+SuspenseFix.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js
index 1c5266e..d072621 100644
--- a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js
+++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js
@@ -20554,20 +20554,20 @@ function finishConcurrentRender(root, exitStatus, lanes) {
var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; // Don't bother with a very short suspense time.
- if (_msUntilTimeout > 10) {
- // Instead of committing the fallback immediately, wait for more data
- // to arrive.
- root.timeoutHandle = scheduleTimeout(
- commitRoot.bind(
- null,
- root,
- workInProgressRootRecoverableErrors,
- workInProgressTransitions
- ),
- _msUntilTimeout
- );
- break;
- }
+ // if (_msUntilTimeout > 10) {
+ // // Instead of committing the fallback immediately, wait for more data
+ // // to arrive.
+ // root.timeoutHandle = scheduleTimeout(
+ // commitRoot.bind(
+ // null,
+ // root,
+ // workInProgressRootRecoverableErrors,
+ // workInProgressTransitions
+ // ),
+ // _msUntilTimeout
+ // );
+ // break;
+ // }
} // Commit the placeholder.
commitRoot(
diff --git a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js
index b85648d..8adba02 100644
--- a/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js
+++ b/node_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js
@@ -6702,18 +6702,18 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
: 4320 > lanes
? 4320
: 1960 * ceil(lanes / 1960)) - lanes;
- if (10 < lanes) {
- root.timeoutHandle = scheduleTimeout(
- commitRoot.bind(
- null,
- root,
- workInProgressRootRecoverableErrors,
- workInProgressTransitions
- ),
- lanes
- );
- break;
- }
+ // if (10 < lanes) {
+ // root.timeoutHandle = scheduleTimeout(
+ // commitRoot.bind(
+ // null,
+ // root,
+ // workInProgressRootRecoverableErrors,
+ // workInProgressTransitions
+ // ),
+ // lanes
+ // );
+ // break;
+ // }
commitRoot(
root,
workInProgressRootRecoverableErrors,