question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implement context

See original GitHub issue

Not 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 getChildContextand contextTypes as well as passing the context into the constructor, render(?) and shouldComponentUpdate.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:15 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
BerndWesselscommented, Mar 13, 2017

@developit Hi, did you mean that context is now supported in preact@7.2.0 ?

Route with react-router-redux is still not picking up location changes if the ConnectedRouter is in an outer/parent component.

Update: I just did a bit of digging and it seems that componentWillReceiveProps is not called when the redux state and context changes. Maybe that’s a clue?

Update2: OK, digging a bit deeper and coming across this it seems that passing pure: false to connect fixes this issue which makes sense.

So no worries and everything is fine I guess 😉

1reaction
developitcommented, Feb 7, 2016

Now generally available as of 3.2.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found