on master help sign in
Add comment to routeLink
b483dceAli Abrar
lib/route/src/Obelisk/Route/Frontend.hs+2
@@ -423,6 +423,8 @@ runRouteViewT routeEncoder a = do
423 setState = attachWith f ((,) <$> current historyState <*> current route) changeState
423 setState = attachWith f ((,) <$> current historyState <*> current route) changeState
424 return result
424 return result
425
425
426+-- | A link widget that, when clicked, sets the route to the provided route. In non-javascript
427+-- contexts, this widget falls back to using @href@s to control navigation
426routeLink
428routeLink
427 :: forall t m a route.
429 :: forall t m a route.
428 ( DomBuilder t m
430 ( DomBuilder t m