Open Bug 1522038 Opened 5 years ago Updated 2 years ago

Investigate removing the Rules component

Categories

(DevTools :: Inspector: Rules, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: gl, Unassigned)

References

(Blocks 1 open bug)

Details

In https://bugzilla.mozilla.org/show_bug.cgi?id=1521013#c4, we commented about how the Rules component is a wrapper that returns an array of Rule. We would like to remove the Rules component to simplify the code to reduce prop drilling.

The original intention of introducing this Rules component was because of the Accordion items requiring a component. The task here to investigate how we can go about removing the Rules component and still make the existing Accordion component work as-is. This might be about creating a Fragment or passing a render function that will return the necessary components and component props.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.