Skip to content

[Synced PR #2146] feat(router): add notFound fallback — renders DefaultNotFound on unmatched routes (#2120) - #47

Open
tmdeveloper007 wants to merge 1 commit into
mainfrom
mavis/termui-pr-2146-20260730013914
Open

[Synced PR #2146] feat(router): add notFound fallback — renders DefaultNotFound on unmatched routes (#2120)#47
tmdeveloper007 wants to merge 1 commit into
mainfrom
mavis/termui-pr-2146-20260730013914

Conversation

@tmdeveloper007

Copy link
Copy Markdown
Owner

Upstream PR: Karanjot786/TermUI#2146

Original Author: divyanshim27
State: Closed ✗
Merge Commit SHA: None
Labels: type:docs, type:feature, stale, needs-star, area:data, type:testing


PR description:

Summary

Adds notFound config option to <Router> — renders DefaultNotFound
(or a custom component) when navigation targets an unregistered path,
instead of rendering nothing and freezing the terminal app.

Problem

When navigate('/unregistered-path') was called, resolveRoute() returned
null and the Router rendered null. In a terminal application, a null render
produces a blank screen with no key inputs responding — the user has no way
to recover without killing the…

_

Synced from upstream by Mavis TermUI Bot on 2026-07-30 01:39 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant