Implement context
See original GitHub issueNot sure if this is planned already but it seems like contexts are the main thing missing before getting parity with React.
This will mean adding lifecycle hooks for getChildContext
and contextTypes
as well as passing the context into the constructor
, render
(?) and shouldComponentUpdate
.
Issue Analytics
- State:
- Created 8 years ago
- Comments:15 (10 by maintainers)
Top Results From Across the Web
Implementation, context and complexity
Context is a problem in research on health behaviour change, knowledge translation, practice implementation and health improvement.
Read more >Implementing a Context Implementation
A context implementation is a class that implements the Context · (in the API reference documentation) interface. It is the guts of a...
Read more >Context - React
Context provides a way to share values like these between components without having to explicitly pass a prop through every level of the...
Read more >27. Context Managers — Python Tips 0.1 documentation
The most widely used example of context managers is the with statement. ... Let's see how we can implement our own Context Manager....
Read more >contextlib — Utilities for with-statement contexts ... - Python Docs
Source code: Lib/contextlib.py This module provides utilities for common tasks involving the with statement. For more information see also Context Manager ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@developit Hi, did you mean that
context
is now supported inpreact@7.2.0
?Route
withreact-router-redux
is still not picking up location changes if theConnectedRouter
is in an outer/parent component.Update: I just did a bit of digging and it seems that
componentWillReceiveProps
is not called when theredux state
andcontext
changes. Maybe that’s a clue?Update2: OK, digging a bit deeper and coming across this it seems that passing
pure: false
toconnect
fixes this issue which makes sense.So no worries and everything is fine I guess 😉
Now generally available as of
3.2
.