Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
GitHub
t

RoutedNavigation

trait RoutedNavigation[-Params] extends Navigation

The navigation of a LiveView.Routed, which can also patch by parameters.

Patching by parameters encodes them with the view's own route, so the patch always stays on that route.

Defined by scalive.RoutedNavigation. View source (scalive/api/src/scalive/lifecycle/Capabilities.scala:76-85)

Methods2

pushPatch

def pushPatch(params: Params): zio.package.Task[Unit]

Changes the URL to this view's route with params and adds a history entry.

The LiveView stays mounted and receives params in handleParams. Fails with EncodingException when params cannot be encoded.

Defined by scalive.RoutedNavigation.pushPatch. View source (scalive/api/src/scalive/lifecycle/Capabilities.scala:82-82)

replacePatch

def replacePatch(params: Params): zio.package.Task[Unit]

Changes the URL to this view's route with params, replacing the current history entry.

Defined by scalive.RoutedNavigation.replacePatch. View source (scalive/api/src/scalive/lifecycle/Capabilities.scala:85-85)