registerRoutesInvalidatedObserver

fun registerRoutesInvalidatedObserver(observer: RoutesInvalidatedObserver)

Registers RoutesInvalidatedObserver. Use this method to keep track of routes that become invalidated, which means they won't be refreshed anymore. It is recommended to rebuild the route when you receive a notification of it being invalidated.