Question: how to buy a house while selling yours?
Answer: Find a short-term rental if you sell your current home but haven't found your next place. ... 
Ask the buyers to do a rent-back agreement, which allows you to remain in your current home after closing for a short time and pay rent to the new owner until you can move.