All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.frontroute.CustomLocationProvider.scala Maven / Gradle / Ivy

package io.frontroute

import com.raquo.airstream.core.EventStream
import io.frontroute.internal.UrlString

import scala.scalajs.js

class CustomLocationProvider(locations: EventStream[String]) extends LocationProvider {

  val stream: EventStream[RouteLocation] = locations.collect { case UrlString(location) =>
    RouteLocation(location, js.undefined)
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy