The simple answer: "Both!"
You want your users to have a fast and smooth user interface, so instant feedback is important (if you cannot guarantee that your round-trip time is super-fast) and saves on round trips. However, you cannot guarantee that only your clients with this confirmed entry are sent to your server, so you also need to check it.
source
share