Does divorce affect an immigrant's ability to remain/naturalize?

this year 2019, there are ways that foreign spouses under some conditions stay taiwan after they get divorced.

Iirc, ongoing naturalization may not be denied due to a divorce. This needs to be confirmed.