notFoundComponent
doesn't render when notFound
is thrown in the loader since 1.28.2
#1551
Labels
bug
Something isn't working
Describe the bug
A route wrapped in
Suspense
either by setting the propwrapInSuspense
totrue
or defining apendingComponent
doesn't render thenotFoundComponent
or thedefaultNotFoundComopnent
when thenotFound
function is thrown in the loader.Your Example Website or App
https://codesandbox.io/p/devbox/beautiful-archimedes-7vwmwj
Steps to Reproduce the Bug or Issue
To reproduce :
Loading
is rendered instead ofNot found
Things that doesn't trigger the bug :
wrapInSuspense
is set tofalse
pendingComponent
is not setExpected behavior
The prop
notFoundComponent
should be rendered when thenotFound
function is thrown in the loader even if the route is wrapped inSuspense
and the Promise is taking longer to resolve.Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: