router
router copied to clipboard
fix: render errorElement when route loader is rejected
Fixes #255
- We set the
RouteMatch
status after loading the elements and (optional) loader - The loader can also set the status
- Thus, we only set the
resolved
status forRouteMatch
'es without loaders, to prevent overriding the status set by the loader
I guess you could rework this logic many ways but i thought this was the easiest to follow.
@badsyntax is attempting to deploy a commit to the Tanstack Team on Vercel.
A member of the Team first needs to authorize it.
Hoping this gets merged eventually.