I have this, every time addEmail is called, the updater callback for setEmails is called twice and therefore the new email is added twice:<