[#58260898] Adds afterRender hook to router render method