Your genetics may play a role in developing contact reactions to specific allergens or irritants. Research from 2019 suggests that a mutation in the FLG gene may increase your risk of allergic contact dermatitis.
According to the British Skin Foundation, families with a history of eczema, asthma, and hay fever may develop irritant contact dermatitis more easily.