fix(hook): update hook constraint and usage (closes #4492)