Besides white vinegar, there are some commercial pet hair dissolvers that can be used to physically break down hair in a washing machine when running a cleaning cycle. This hair will then be caught by the lint trap more easily, or washed away into the drains. Vamoosh pet hair dissolver from Amazon is a good example of this.