Skip to content

[Due for payment 2026-07-21] Add coding-standards rule to prevent eager component-level args for conditionally/lazily-used callees #94219

Description

@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 OwnerCurrent Issue Owner: @kacper-mikolajczak

Metadata

Metadata

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
CRITICAL

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions