Adds the NavigationMiddleware to provide a single location where integrity checking can be performed on the navigational system. It provides two generic handlers to control the navigational system:
onNavigate: Control what routes the user can access. It also allows redirecting.
onError: Handle any errors that may occur. The default implementation prints the error. If a route fails to complete, it will also redirect to the root route.
Adds the NavigationMiddleware to provide a single location where integrity checking can be performed on the navigational system. It provides two generic handlers to control the navigational system:
onNavigate
: Control what routes the user can access. It also allows redirecting.onError
: Handle any errors that may occur. The default implementation prints the error. If a route fails to complete, it will also redirect to the root route.Closes #6 #4