mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
InferReactiveIdentifiers handles Capture effect
This commit is contained in:
1 parent
9493e13709
commit
b7b0118afa
1 file changed
+1
-1
@@ -59,6 +59,7 @@ class Environment extends ReactiveFunctionVisitor<IdentifierReactivity> {
|
||||
// all mutating effects must also be marked as reactive
|
||||
for (const operand of eachReactiveValueOperand(value)) {
|
||||
switch (operand.effect) {
|
||||
case Effect.Capture:
|
||||
case Effect.Store:
|
||||
case Effect.Mutate: {
|
||||
// Explicitly compare to `false` here, since absence from the
|
||||
@@ -69,7 +70,6 @@ class Environment extends ReactiveFunctionVisitor<IdentifierReactivity> {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case Effect.Capture:
|
||||
case Effect.Freeze:
|
||||
case Effect.Read: {
|
||||
// no-op
|
||||
|
||||
Reference in new issue
Block a user