io.frontroute.BrowserLocationProvider.scala Maven / Gradle / Ivy
package io.frontroute
import com.raquo.airstream.core.EventStream
import org.scalajs.dom
class BrowserLocationProvider(popStateEvents: EventStream[dom.PopStateEvent]) extends LocationProvider {
val stream: EventStream[RouteLocation] = popStateEvents.map(event => RouteLocation(dom.window.location, event.state))
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy