I am trying to override the helper file of XYZ component and for this I have created a system plugin using these documentation -
and
My plugin is working fine and its giving me the values but only problem is - the plugin is loading before the component.
I am using onAfterRoute event for this and also tried some other events such as onAfterInitialise, onAfterDispatch, onAfterRender.
What should I do now to load my plugin after the component?