It all depends on your current financial state. Are you going to be able to keep track of a rental with tenants while you are living in another state? Are your current finances enough to hold you over while you try to line up a potential tenant for your home? My best advice is to research if the rental market is good for your neighborhood and see if it will net you a positive income since you’ll need to cover the current mortgage (if there is one) along with the yearly taxes and any other fees that you have to pay (such as HOA).
I decided to sell my previous home since I could use the extra money to put towards a new down payment for the next house. It would’ve been too stressful to try and keep track of a tenant that I wouldn’t be able to stay vigilant unless I hired a property manager.