I'm converting a custom component from Joomla 3, where the component was using the legacy router, to Joomla 4 router. I have the router service set up and working on Joomla 4.4.0. I first tried creating a component Router which extended the RouterView. I needed to check the output of the parse function to check which segments still needed converting to vars. However the parse function didn't get executed. The build function yes. So I tried creating a component class Router which implements the Joomla\CMS\Component\Router\RouterInterface. Again the preprocess and build function are executed but the parse function doesn't get executed. In Joomla 3 the myComponentParseRoute function would be executed when clicking on MyComponent link. The behaviour seems different in Joomla 4.
Reading the notes in the RouterInterface the parse function should be executed when SEF mode is switched on. I've SEF mode activated but in Joomla 4 when should the router parse function be executed? I've already read the book by Nicholas Dionysopoulos and viewed the Youtube videos by Robbie Jackson. Can anybody give any further tips for building and debugging the Joomla 4 component router parse function?