Error expect parentMatchPromise to be defined is thrown
Expected behavior
As a developer, I expect parentMatchPromise to be defined in the loader of a child route, so I can await the loader of the parent route and act based on its result.
Screenshots or Videos
No response
Platform
OS: macOS
Browser: Chrome
Version: 1.29.2
Additional context
This feature is not documented yet and I found it in this discussion.
Describe the bug
Inside the loader of a child route
parentMatchPromise
is alwaysundefined
.Your Example Website or App
https://stackblitz.com/edit/tanstack-router-rekhkq?file=src%2Froutes%2Fparent.child.tsx
Steps to Reproduce the Bug or Issue
expect parentMatchPromise to be defined
is thrownExpected behavior
As a developer, I expect
parentMatchPromise
to be defined in the loader of a child route, so I can await the loader of the parent route and act based on its result.Screenshots or Videos
No response
Platform
Additional context
This feature is not documented yet and I found it in this discussion.