@samitouri / QOS-React-1 / commits / 59b32f0813

🌲 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).

Joe Savona committed Dec 11, 2023 at 11:34 UTC 59b32f0813fae57908029d4b3e2003e82a87a0f0
1 file changed +5 -2
compiler/packages/sprout/src/SproutTodoFilter.ts
+5 -2
@@ -422,8 +422,11 @@ const skipFilter = new Set([
422 "readonly-object-method-calls-mutable-lambda",
423
424 // TODO: 🌲
425 - "forest-basic",
426 - "forest-basic-jsx",
425 + "forest/forest-basic",
426 + "forest/forest-basic-jsx",
427 + "forest/forest-primitive-operations",
428 + "forest/computed-load-props",
429 + "forest/property-load-props",
430
431 // TODO: we probably want to always skip these
432 "rules-of-hooks/rules-of-hooks-0592bd574811",