pub struct PropDrillingChain {
pub prop: String,
pub depth: u32,
pub hops: Vec<PropDrillHop>,
}Expand description
A located prop-drilling chain: a received prop forwarded unchanged through
>= N intermediate pass-through components, each of which only re-passes it,
until a component that substantively consumes it. The high-confidence signal
is “the received identifier is used ONLY as the root of forwarded child-JSX
attribute values”, not the attribute name matching. Health signal (rule
defaults to off, opt-in): a small capped penalty plus a health --hotspots
surface, and located per-chain records so CI / an agent can act (“colocate or
lift to context at hop B”). Zero-FP doctrine: any spread / cloneElement /
element-as-prop / render-prop / context-provider / dynamic shape in the path
abstains the whole chain.
Fields§
§prop: StringThe drilled prop name as declared at the chain SOURCE.
depth: u32The chain depth = the number of components the prop is forwarded THROUGH
(source + intermediates + consumer = hops.len()). Always >= N.
hops: Vec<PropDrillHop>The ordered hop trail from source to consumer. The first hop owns the
prop, the middle hops are pass-throughs, the last hop consumes it. The
finding anchor is the first hop (path / line for suppression + CI).