Skip to content

Reduce prop drilling in Offcanvas Inspector back button #45909

@getdave

Description

@getdave

Let's explore reducing the prop drilling here by retrieving values directly from the stores instead.


    It may simplify things if this component just received a "clientId" and handles everything using useSelect/useDispatch internally. There doesn't seem to be a valid reason for all the prop passing down (unless I'm missing something). For the record, I know this is not entirely introduced in this PR :)

Originally posted by @youknowriad in #45852 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions