Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Implement context api to prevent props passing hell #1618

Open
mahmed0715 opened this issue Nov 9, 2019 · 0 comments
Open

Implement context api to prevent props passing hell #1618

mahmed0715 opened this issue Nov 9, 2019 · 0 comments
Labels
enhancement New feature or request tooling

Comments

@mahmed0715
Copy link
Contributor

Describe the feature you'd like to see included in Plant-for-the-Planet App.
Currently we use redux to share state, thats awsome, problem is for a component tree we needed to pass a props/function/action from top to very bottom on the tree, that causes sometimes missing props in somewhere in the middle.
I think we can avoid this kind of passing props hell by using context api on UPDATED REACT(0.6+)

What are the use cases for this feature?
We will use redux as is, but in addition we can use context api just to avoid these kind of issue.

Background: Today I had an issue like this, thus thought of implementing some kind of upgrade to this process..

Open discussion is required, I hope everyone commenting please check what context api can do for us.

@mahmed0715 mahmed0715 added the enhancement New feature or request label Nov 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request tooling
Projects
None yet
Development

No branches or pull requests

2 participants