-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Closed
Labels
Description
I'm using React Router as a...
framework
Reproduction
I have reproduced the bug in THIS REPO
System Info
System:
OS: macOS 15.3.2
CPU: (10) arm64 Apple M4
Memory: 438.17 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.14.0 - ~/.nvm/versions/node/v22.14.0/bin/node
npm: 10.9.2 - ~/.nvm/versions/node/v22.14.0/bin/npm
Browsers:
Chrome: 135.0.7049.41
Safari: 18.3.1
npmPackages:
@react-router/dev: ^7.4.1 => 7.4.1
@react-router/node: ^7.4.1 => 7.4.1
@react-router/serve: ^7.4.1 => 7.4.1
react-router: ^7.4.1 => 7.4.1
vite: ^5.4.11 => 5.4.17Used Package Manager
npm
Expected Behavior
I wold expect that ChildOne would have access to the context because it's parent has access.
Actual Behavior
ChildOne, clearly a child of the ContextBugDemo route component, yet, it doesn't seem to have access to the context that the parent has access too.
I'm accessing the context successfully in the ContextBugDemo component, so, that would suggest it's within the context provider.
However, the child fails to access the context
