If you resign rashly without finding a next home, you are likely to find a job for a long time. There are so many moonlight people now, I'm afraid I can't even pay the rent without savings and jobs.
Comparatively speaking, finding a house while working can avoid this situation. Very clever.