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.

Support "context bridging"

See original GitHub issue

Since Recoil relies on the context to propagate and store its state, it would be nice to have the ability to bridge this context, if it isn’t propagated to all nodes in the tree.

Unfortunately, this is the case with ReactART (and friends) and the only proposed solution (for now) is to bridge the context using a “Consumer” with another “Provider” directly below it. See https://github.com/facebook/react/issues/13336 and in particular this comment: https://github.com/facebook/react/issues/13336#issuecomment-414709155. Recoil does not provide this, AFAICS.

Would it be possible to either:

  • Provide a RecoilConsumer that does this or
  • Get access to the underlying context?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:8
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
femesqcommented, Jul 24, 2020

Was just wondering if instead of exposing AppContext (I mean, if there are really concern on this) exposing and ContextBridging component like @inlet suggests here would be a viable alternative… 🤔

2reactions
yomybabycommented, Jun 27, 2020

In case of react-native-navigation, that can be have many react roots. It’s need to the way to share state across <RecoilRoot>.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bridging Contexts, Making Connections
Bridging Contexts, Making Connections: Selected. Papers from the Fifth International Conference on Language Teacher Education (CARLA Working Paper. Series).
Read more >
contextBridge - Electron
Create a safe, bi-directional, synchronous bridge across isolated contexts.
Read more >
Forms and functions of bridging factors - CAPTAIN.ca.gov
Abstract. Background: Bridging factors are relational ties, formal arrangements, and processes that connect outer system and inner organizational contexts.
Read more >
How to Read Your Bible: Part 3 - Bridging Context
In this podcast Paul and Steven discuss how the Bible is one large story with many connecting elements.
Read more >
2. The Criteria in Context | Assessment in Support of ...
Suggested Citation:"2. The Criteria in Context." National Research Council. 2003. Assessment in Support of Instruction and Learning: Bridging the Gap ...
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