Skip to content

Minimize Prop drilling

Warren Gifford requested to merge minimize-prop-drilling into master

Created by: felixfbecker

Prop drilling refers to having to pass-through the same props through a lot of components. This removes duplicated Prop declarations by sharing common Prop interfaces and uses the {...props} spread syntax to pass through bags of props. This eliminates the need to add each new prop that needs to be passed through to a lot of components on every change.

As an example, @beyang would not have to manually pass-through the activation prop in a lot of places in https://github.com/sourcegraph/sourcegraph/pull/2258/files.

Merge request reports

Loading