Would just like to add one in addition to the points already made in the comments:
Offering you a significant raise, a different and more interesting project/location, when you have put in your papers. Asking you to rethink your decision of quitting.
Seems like I didn't exist for the manager until I put my resignation.
Seems like I didn't exist for the manager until I put my resignation.