feat(router.ats): add deactivate hook