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

Error in ContextBridge: the context isn't reachable in sub components #2282

Open
jolofj opened this issue Dec 30, 2024 · 0 comments
Open

Error in ContextBridge: the context isn't reachable in sub components #2282

jolofj opened this issue Dec 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jolofj
Copy link

jolofj commented Dec 30, 2024

  • three version: "^0.161.0"
  • @react-three/fiber version: ^8.15.15
  • @react-three/drei version: ^9.97.5
  • node version: v20.11.0
  • npm (or yarn) version: 10.2.4
    React "^18.2.0",

Problem description:

The context is working in the child components of the children components in ContextBridge component , but it doesn't seem to be reachable in the subcomponents of those components. That worked earlier with ContextBridge.

Relevant code:

// The context is reachable inside the Content3D component

 <ContextBridge>
               <Content3D />
  <ContextBridge>   
            
//  But not in the             
         
 <Component3D />      
 
 // That is located in     Content3D          

Suggested solution:

@jolofj jolofj added the bug Something isn't working label Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant