I'm using File-based routing with layouts. I have an _app layout and _auth layout and some nested routes. I'm using getRouteApi to use some of the route's hooks. In my app-entry.tsx i initialize the router and also have my app providers. I import the App function inside main.tsx. When hitting CTRL+S inside app-entry then i'm receiving this error -> Cannot read properties of undefined (reading 'routeId'). Refreshing the page or hitting CTRL+S in main.tsx or some inside the routes is fixing the problem. Am doing something wrong?
Basically when i this occurs, i see in RouterDevTools this (1st image) but when refreshing the page i see the correct paths (2nd image) .