You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: website/docs/12.x/docs/api/misc/config.mdx
+5
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ type Config = {
7
7
asyncUtilTimeout:number;
8
8
defaultHidden:boolean;
9
9
defaultDebugOptions:Partial<DebugOptions>;
10
+
concurrentRoot:boolean;
10
11
};
11
12
12
13
function configure(options:Partial<Config>) {}
@@ -26,6 +27,10 @@ This option is also available as `defaultHidden` alias for compatibility with [R
26
27
27
28
Default [debug options](#debug) to be used when calling `debug()`. These default options will be overridden by the ones you specify directly when calling `debug()`.
28
29
30
+
### `concurrentRoot` option
31
+
32
+
Set to `true` to enable concurrent rendering used in the React Native New Architecture. Otherwise `render` will default to legacy synchronous rendering.
This option allows you to wrap the tested component, passed as the first option to the `render()` function, in an additional wrapper component. This is useful for creating reusable custom render functions for common React Context providers.
34
34
35
+
#### `concurrentRoot` option
36
+
37
+
Set to `true` to enable concurrent rendering used in the React Native New Architecture. Otherwise `render` will default to legacy synchronous rendering.
0 commit comments