mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
InferReactiveIdentifiers handles Capture effect
This commit is contained in:
@@ -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