I write chapters, edit, continue until I finish my novel, edit a lot more, publish, edit again.
What is the point of leaving past works in crappy quality while you get better? I don't see it.
I will always go back and edit if it is something I can fix. After all, I don't mind reading my story 20x times if I need to. I like it and enjoy it.
Sadly, I don't get the writers that say, I won't reread my story to fix mistakes. Most say it is boring. So what? If you find your story boring, then what do you think others will do.
I do this as a hobby and enjoy improving. Heck, I have improved these past months more than I ever had before I published.
Writing is a passion for me. And these readers I get are amazing enough to help me improve. They are the best and for them, I would rewrite my story! So they can get the best quality I can provide.
And that is far from perfect. But I strive for the best I can provide. Thus, I rewrite it tons of times.