Do you edit as you write?

I hear all the time that you shouldn't edit until you've written everything, that editing as you go will slow you down and make you hate your work.

But... well, I edit as I'm writing. I'll go back and fix things in previous scenes, I'll fiddle forever with a single sentence until I get it right, I'll tweak the dialogue earlier in the scene, I'll do whatever I need to for the story to feel like it's ready to flow forward.

It doesn't seem to slow me down, and it makes my writing easier. There do come points where I'm like, "EMMA. LET IT GO. FIX IT LATER," but that's not my all-the-time rule.

So what about you? How does editing midstream affect your work?