router icon indicating copy to clipboard operation
router copied to clipboard

fix: render errorElement when route loader is rejected

Open badsyntax opened this issue 2 years ago • 2 comments

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 for RouteMatch'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 avatar Jun 16 '22 07:06 badsyntax

@badsyntax is attempting to deploy a commit to the Tanstack Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Jun 16 '22 07:06 vercel[bot]

Hoping this gets merged eventually.

tom-ricci avatar Jul 03 '22 02:07 tom-ricci