optimistic delete rollback
Removal has constraints, removing the last ADMIN is disallowed. When trying to remove the last admin the mutation throws a Convex Error and the frontend displays a toast informing the user.
When removing optimistically, the constraint is not enforced and the user is removed from the localstore. I'd expect that when the mutations throws, the optimistic update is rolled back but apparently this doesn't happen.
Is there a way to debug this? Can I somehow inspec the local store to see if this is a UI problem?
Attached: video on the left is without optimistic update, right with optimistic update
