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

Making context official #243

Closed
drcmda opened this issue Nov 6, 2017 · 1 comment
Closed

Making context official #243

drcmda opened this issue Nov 6, 2017 · 1 comment

Comments

@drcmda
Copy link
Contributor

drcmda commented Nov 6, 2017

After context being in React for such a long time, can someone please remove the "experimental" clause in the React docs as it keeps 3rd party maintainers from allowing us to use it.

One such case is react-redux, where connect blocks context in order to prevent liability concerns. It forces us to inject objects and propagate down the tree again. reduxjs/react-redux#289 Although in this case Dan said it wouldn't be possible to read arbitrary types (though, aren't contextTypes static?), i'm citing this also because of the sentiment.

Context is a highly valuable addition to React and without it some parts would be very hard to realize, or perhaps even impossible. Thousands of 3rd party controls use it at this point. It would be nice to know that it is finally deemed an official part of React without the scary possibility that it might be removed.

@bvaughn
Copy link
Contributor

bvaughn commented Nov 6, 2017

Context has been in React for a long time, but it is still an unofficial API that we generally recommend against using (except in special cases). The team has plans to redesign context eventually- making it a part of the official, supported API- but until we do that, context as it is currently implemented (with its current flaws) will remain experimental.

See related issue facebook/react/issues/9411

@bvaughn bvaughn closed this as completed Nov 6, 2017
jhonmike pushed a commit to jhonmike/reactjs.org that referenced this issue Jul 1, 2020
BetterZxx pushed a commit to BetterZxx/react.dev that referenced this issue Mar 21, 2023
* Update forms.md

Lime === 酸橙

* Update forms.md

* Update forms.md

* docs(cn): fix symbol
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