The user preference at
[[Special:Preferences#mw-prefsection-editing]] "Warn me when I leave an edit page with unsaved changes"
is not respected by Flow.
We might want to respect this in future.
I don't get warned about unsaved changes with the preference disabled.
I do get warned.