registerRoutesPreviewObserver
Registers RoutesPreviewObserver to be notified when routes preview state changes. observer is immediately called with current preview state
Parameters
observer
to be called on routes preview state changes