Skip to content

v0.2.1

Choose a tag to compare

@ZtaMDev ZtaMDev released this 10 Jan 21:38
· 8 commits to main since this release

Release Notes - v0.2.1

round-core v0.2.1

Persistence improvements for routing and critical 404 detection bugfix.

New Features

  • Routing Memoization (memo prop): You can now keep routes "alive" in the DOM even when they aren't active.
    • Adding memo={true} to a <Route> or <Page> prevents its destruction on navigation.
    • Elements are hidden with display: none, preserving Signals, DOM identity, and CSS animations.
    • Perfect for stateful views like video players, complex filters, or multi-step forms.
    • Includes a global persistence cache so memoized routes survive if the Route component itself is conditionally unmounted by a parent.

Bug Fixes

  • Atomic 404 Evaluation: Fixed a race condition where manual URL entry or initial load could trigger an incorrect 404 state.
    • Path evaluation is now batched and globalized.
    • isNotFound() now waits for the first render pass to complete before reporting a 404, preventing "false negatives" when routes are defined inside conditional blocks.
  • Identity Preservation: Fixed a bug where recovering nodes from cache would overwrite their _componentInstance, breaking reactive links.