mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
85c92bcfbe04c0edb8ec2bc850ec0d4edda6bb19
Effect.Capture is very similar to Effect.Read, but the only difference is that this reference is stored somewhere via a Effect.Store. Previously, any operand associated with a Effect.Store in the same instruction would get aliased -- so there was no need to explicitly differentiate between a "normal read" and "read that gets stored". This difference is now explicit with FunctionExpression where every dependency is "read" but only a few are "captured" for store (and mutation). In a follow up PR, the mutating deps will have an Effect.Capture to differentiate from the other non mutating deps (Effect.Read).
Languages
JavaScript
67.1%
TypeScript
29.4%
HTML
1.5%
CSS
1.1%
C++
0.6%
Other
0.2%