Invariant failed getting loading data in child component.
I am on version 1.16.6, the newest version seems to make some breaking changes. So I have not been able to update yet.
I have a parent route:
Then I also have a child route:
But when I open the child page I get error:
Why is this happening?
4 Replies
genetic-orange•5mo ago
can you provide a minimal complete example? ideally by forking one of the existing stackblitz examples
molecular-blueOP•5mo ago
I have tried to recreate on StackBlitz, but it works fine.
So I am thinking it might be something about my version?
But just to clarify.
I should be able to use the useLoaderData, from a parent route, inside a child route correct?
Maybe something about my file setup is making it not work.
genetic-orange•5mo ago
it should work for child routes I think
I checked again, I cannot find this error message in our source code
molecular-blueOP•5mo ago
Uhm
That seems weird
Was it on version 1.16.6 you checked it?