Last updated 1 year ago
Whenever the route is unknown, Bemtv will warn you through the onRouteUnfound() function which accepts a listener/callback as the first argument:
onRouteUnfound()
import { onRouteUnfound } from "bemtv"; onRouteUnfound(() => { console.log("We are on an unknown route :("); });