You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a resource route with a loader, a CatchBoundary, and an ErrorBoundary. It also has a default function that just returns an empty React fragment (so that it can also function as "real" child route if needed).
If I call that route with Link, that route's Catch/ErrorBoundary is correctly called when either a Response or Error is thrown. However, if I call that same route with fetcher.load() instead (exact same code in all respects otherwise), the thrown Error or Response will ONLY result in the Root element's Catch/ErrorBoundary being called.
Is that working as designed, or a bug? Or is there some trick that must be employed with fetcher.load() to get that route's Catch/ErrorBoundary to be called?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a resource route with a loader, a CatchBoundary, and an ErrorBoundary. It also has a default function that just returns an empty React fragment (so that it can also function as "real" child route if needed).
If I call that route with Link, that route's Catch/ErrorBoundary is correctly called when either a Response or Error is thrown. However, if I call that same route with fetcher.load() instead (exact same code in all respects otherwise), the thrown Error or Response will ONLY result in the Root element's Catch/ErrorBoundary being called.
Is that working as designed, or a bug? Or is there some trick that must be employed with fetcher.load() to get that route's Catch/ErrorBoundary to be called?
Beta Was this translation helpful? Give feedback.
All reactions