feat(routes): wrap Outlet in ErrorBoundary with recoverable fallback (MAPPS-318) #363
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
psa-systems/mokosh-apps!363
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/MAPPS-318-route-error-boundary"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A single route returning
Err(...)(via?orbail!) previously poisoned the AuthGuard's Outlet, leaving the user on a URL that did not render anything actionable. Wrap the Outlet indioxus::ErrorBoundarywith a centeredRouteErrorFallbackcard that offers "Go to dashboard" (clears the boundary + navigates) and "Reload page" (window.location.reload). Debug builds also print the captured error in a code block so QA can paste it into bug reports.The boundary does NOT catch wasm panics. dioxus-core 0.7 documents that
CapturedPanicis unreachable on wasm because the runtime cannot unwind, sopanic!()still aborts. The fix covers every error that flows through theElement = Result<VNode, RenderError>channel; panic recovery is parked until upstream wasm supports catching unwinds. Inline comment + ticket update flag the limitation explicitly.#MAPPS-318