mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
🌲 Property/Computed load from props is a signal
Extends the previous analysis to work for PropertyLoad and ComputedLoad, so that if the object is a prop we track the resulting value as a signal. We also disallow PropertyLoad/ComputedLoad outside of a reactive scope where the object is a signal (since that would drop reactivity).
This commit is contained in:
1 parent
3f4a9bd330
commit
59b32f0813
1 file changed
+5
-2
@@ -422,8 +422,11 @@ const skipFilter = new Set([
|
||||
"readonly-object-method-calls-mutable-lambda",
|
||||
|
||||
// TODO: 🌲
|
||||
"forest-basic",
|
||||
"forest-basic-jsx",
|
||||
"forest/forest-basic",
|
||||
"forest/forest-basic-jsx",
|
||||
"forest/forest-primitive-operations",
|
||||
"forest/computed-load-props",
|
||||
"forest/property-load-props",
|
||||
|
||||
// TODO: we probably want to always skip these
|
||||
"rules-of-hooks/rules-of-hooks-0592bd574811",
|
||||
|
||||
Reference in new issue
Block a user