Skip to content

Add Context or Provide/Inject API to solve the Props Drilling problem #3861

@AllanOricil

Description

@AllanOricil

Is your feature request related to a problem? Please describe.

I could not find a similar feature in lwc to solve the Props Drilling problem

Describe the solution you'd like

Maybe create something like Vue's Provide/Inject feature?

https://vuejs.org/guide/components/provide-inject.html

Describe alternatives you've considered

I would probably use this state management lib based redux

https://www.lwc-redux.com/

I'm not sure if this is the best solution because states are availble to any component in the tree, and not just the descendants of a component.

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions