[minor] Emit sync AFTER we've processed all changes