Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for createContext #1092

Closed
bignose-debian opened this issue May 5, 2018 · 3 comments
Closed

Support for createContext #1092

bignose-debian opened this issue May 5, 2018 · 3 comments

Comments

@bignose-debian
Copy link

The React 16.3 API now has a way to add “context”, the createContext function:

Context provides a way to pass data through the component tree without having to pass props down manually at every level.

Please implement this same behaviour and API in Preact.

@yaodingyd
Copy link
Collaborator

There is a PR #963 to track this.

@bignose-debian
Copy link
Author

bignose-debian commented May 5, 2018 via email

@yaodingyd
Copy link
Collaborator

I don't see leave this issue open any good. The PR has all the implementation info(which you can review as well) and discussions, also Jason said currently Preact prefer context as a dedicated module. Also one wonderful contributor already published a module. Keeping this issue open would only cause distraction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants