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

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

package io.frontroute

import com.raquo.airstream.core.EventStream
import org.scalajs.dom

trait LocationProvider {

  def stream: EventStream[RouteLocation]

}

object LocationProvider {

  @inline def browser(popStateEvents: EventStream[dom.PopStateEvent]): LocationProvider = new BrowserLocationProvider(popStateEvents)
  @inline def custom(locations: EventStream[String])                                    = new CustomLocationProvider(locations)

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy