mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[forest] Turn off jsx memoization
This commit is contained in:
@@ -220,9 +220,11 @@ export function* run(
|
||||
value: reactiveFunction,
|
||||
});
|
||||
|
||||
pruneNonEscapingScopes(reactiveFunction, {
|
||||
memoizeJsxElements: config?.memoizeJsxElements ?? true,
|
||||
});
|
||||
let memoizeJsxElements = config?.memoizeJsxElements ?? true;
|
||||
if (config?.enableForest) {
|
||||
memoizeJsxElements = false;
|
||||
}
|
||||
pruneNonEscapingScopes(reactiveFunction, { memoizeJsxElements });
|
||||
yield log({
|
||||
kind: "reactive",
|
||||
name: "PruneNonEscapingDependencies",
|
||||
|
||||
Reference in New Issue
Block a user