Skip to content

@rangojs/router 0.33.1

Choose a tag to compare

@ivogt ivogt released this 01 Nov 21:59
· 13 commits to main since this release
175a0a0

Fixed: no "MISSING SEGMENT" error for an action whose page left while it was in flight (#1366)

An action sent from one page whose response landed after a navigation to
another (a clientUrls() destination's mount effect runs at the click, before
the navigation commits) logged [Browser] MISSING SEGMENT: <id> not in cache!
for the previous page's held segments, a revalidate(false) loader for one.
The response commits nothing, as before, and is no longer reconciled against
the new page, so nothing is logged. Such an action still runs in the previous
page's request context: pass what it needs as arguments.

Docs: moving a layout's <Outlet /> between branches remounts its children (#1367)

A layout that returns a bare <Outlet /> on one branch and a wrapped one on
another remounts every page below it when the branch flips: state resets and
mount effects run again. The /layout skill now states the rule (keep one
shape, or a stable key on the outlet when the only difference is a
top-level fragment), and /app-structure lists it among its rules.