Producing two genres

When i first started out i was advised to stick to one genre. What are your thoughts on this? I love both House and Trance music and love producing both, but i’m always told I need to settle on one or the other.

Would this affect me getting dj gigs in future which is what i plan to do? Of course on the night of a gig, i’d stick to whatever the theme of the night is. But in terms of producing and putting music out on spotify etc, i’d like to continue with both.

Keen to hear some opinions and if anyone else does the same.