Skip to content

Add context-like solution to avoid props drilling #775

@MaxKrai

Description

@MaxKrai

Good day to all!
Is it possible from performance perspective and workload to provide support for React/Angular context-like functionality?
For more than 2 years of work with Ember I have come across an urgent need for this functionality several times (mostly large components with different configurations).

I know there are some solutions (e.g. ember-context), but some of them don't have full functionality or don't work with Glimmer components.

Ideally I would like to see something similar to:

<Context data={{someInstance / factory}}>
  <AComponent>
    <DeepComponent />
  <AComponent/>
</Context>

where in deep-component I can use this.context.

Could someone share any information about this functionality, what were the proposals?
As well as could you tell how you deal with this props drilling effect?

I am sure that similar questions have already been asked, sorry for that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions