If you leave Canada before permanent residence is approved there is no guarantee that you will be allowed to return or re-enter Canada. This is especially true if you require a visitor visa.
Your application may be refused or delayed if you no longer have temporary resident status to qualify as a member of the Spouse or Common-law partner in Canada class.