-
Notifications
You must be signed in to change notification settings - Fork 55
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
Children is undefined even though route matches #646
Comments
Are you trying to access
Line 39 in b95e8f5
There's also support for the syntax in https://github.com/4Catalyzer/found#render where render={({ Component }) => children => <Component>{children}</Component>} But most likely it's something wonky there happening. |
Yep, I'm trying to access
So it indeed appears as though something jank is happening. Even in the above case, What's even more jank, is I have an almost identical case where |
Okay, that's bizarre. Is there any other sort of HoC that might be swallowing |
They both use I'll keep digging and try to figure out where things are getting messed up |
I'm experiencing an issue where I keep getting
children = undefined
in the parent's props when visiting a child route.I'm using found with found-relay and I need to be able to visit routes matching
/chat
and/chat/12345
. The following is part of my routing config:I am able to visit
/chat
just fine, and the page renders as expected. However, when I try to visit/chat/12345
I see the graphql request run, and the renderRoute function is called for the child route, however children is null for the parent ChatView component.Now, if I modify this to use a named child as such:
Then I do see thread in the parent component's props, and child renders successfully.
What's going on here? Why doesn't the first example work?
The text was updated successfully, but these errors were encountered: