Problem
When a component computes an expensive value at render (e.g. subscribing to a large Onyx collection) only to pass it into a function that runs conditionally or lazily, it pays that cost - and re-renders on every collection change - on every render, which hurts responsiveness on high-traffic accounts.
Solution
Add a coding-standards reviewer rule (PERF-17) that flags eagerly-computed component-level values forwarded into lazily-run callees, and points to cheaper alternatives (let the callee source the data, defer the work, or narrow the subscription).
Issue Owner
Current Issue Owner: @kacper-mikolajczak
Problem
When a component computes an expensive value at render (e.g. subscribing to a large Onyx collection) only to pass it into a function that runs conditionally or lazily, it pays that cost - and re-renders on every collection change - on every render, which hurts responsiveness on high-traffic accounts.
Solution
Add a coding-standards reviewer rule (PERF-17) that flags eagerly-computed component-level values forwarded into lazily-run callees, and points to cheaper alternatives (let the callee source the data, defer the work, or narrow the subscription).
Issue Owner
Current Issue Owner: @kacper-mikolajczak