There’s no issue with hanging your bike by the wheels. Bicycles are built to be durable, and the wheel is what supports the entire load of the bike while riding it. So hanging the bike by the wheel is safe for supporting the bike’s weight.