Earlier quoted context omitted.
That is not at all what sudoedit does.
Not at all? Might wanna brush up on the manpage. The temp file is a feature but not essential to getting work done.
The entire point of sudoedit is to reduce the attack surface, without that it's absolutely useless since you can just `sudo` whatever editor you prefer.